Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001546, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008548/0.0008548, allocations: 98.28 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002894, allocations: 4 kB / 351.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2018, allocations: 50.4 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.3249, allocations: 110 MB / 0.4996 GB, free: 2.402 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.3252, allocations: 96.47 kB / 0.4996 GB, free: 2.309 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2826/0.6078, allocations: 52.36 MB / 0.5508 GB, free: 63.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.6079, allocations: 0 / 0.5508 GB, free: 63.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001574/0.608, allocations: 63.94 kB / 0.5508 GB, free: 63.84 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.004661/0.6127, allocations: 2.779 MB / 0.5536 GB, free: 60.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.6128, allocations: 12.03 kB / 0.5536 GB, free: 60.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005744/0.6133, allocations: 359 kB / 0.5539 GB, free: 60.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007658/0.6141, allocations: 336.2 kB / 0.5542 GB, free: 60.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003911/0.618, allocations: 1.783 MB / 0.556 GB, free: 58.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.6182, allocations: 160.1 kB / 0.5561 GB, free: 58.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003995/0.6186, allocations: 211.9 kB / 0.5563 GB, free: 58.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004138/0.6227, allocations: 2.703 MB / 0.559 GB, free: 55.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.081e-05/0.6228, allocations: 7.938 kB / 0.559 GB, free: 55.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001857/0.623, allocations: 84 kB / 0.559 GB, free: 55.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.47e-05/0.6231, allocations: 92.05 kB / 0.5591 GB, free: 55.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0033/0.6264, allocations: 2.198 MB / 0.5613 GB, free: 52.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.6377, allocations: 8.405 MB / 0.5695 GB, free: 44.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002388/0.6401, allocations: 1.671 MB / 0.5711 GB, free: 42.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002887/0.6404, allocations: 142 kB / 0.5713 GB, free: 42.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.6405, allocations: 47.56 kB / 0.5713 GB, free: 42.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 2.885e-06/0.6405, allocations: 0 / 0.5713 GB, free: 42.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.01286/0.6534, allocations: 6.73 MB / 0.5779 GB, free: 35.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.6534, allocations: 68.72 kB / 0.5779 GB, free: 35.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003612/0.6571, allocations: 1.889 MB / 0.5798 GB, free: 33.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000184/0.6573, allocations: 53.64 kB / 0.5798 GB, free: 33.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008396/0.6581, allocations: 1.115 MB / 0.5809 GB, free: 32.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004222/0.6586, allocations: 469.1 kB / 0.5814 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.6587, allocations: 28 kB / 0.5814 GB, free: 31.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.6588, allocations: 357.9 kB / 0.5817 GB, free: 31.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001789/0.6606, allocations: 0.773 MB / 0.5825 GB, free: 30.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.6625, allocations: 1.017 MB / 0.5835 GB, free: 29.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001897/0.6644, allocations: 0.9004 MB / 0.5844 GB, free: 28.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.6644, allocations: 4 kB / 0.5844 GB, free: 28.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.006962/0.6714, allocations: 2.843 MB / 0.5871 GB, free: 25.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.6715, allocations: 11.94 kB / 0.5872 GB, free: 25.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.927e-05/0.6715, allocations: 8 kB / 0.5872 GB, free: 25.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002791/0.6743, allocations: 0.8417 MB / 0.588 GB, free: 24.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/0.6759, allocations: 267.6 kB / 0.5882 GB, free: 24.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/0.6909, allocations: 9.65 MB / 0.5977 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/0.693, allocations: 99.97 kB / 0.5978 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/0.6931, allocations: 51.98 kB / 0.5978 GB, free: 14.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001784/0.6949, allocations: 0.7433 MB / 0.5985 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005243/0.6955, allocations: 201.5 kB / 0.5987 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006119/0.7016, allocations: 2.591 MB / 0.6013 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.7016, allocations: 12 kB / 0.6013 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.7017, allocations: 12 kB / 0.6013 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.7017, allocations: 7.969 kB / 0.6013 GB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.7134, allocations: 5.113 MB / 0.6063 GB, free: 5.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/0.7135, allocations: 4 kB / 0.6063 GB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/0.7149, allocations: 223.8 kB / 0.6065 GB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.7167, allocations: 0.7026 MB / 0.6072 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.631e-05/0.7168, allocations: 35.92 kB / 0.6072 GB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00837/0.7252, allocations: 8.688 MB / 0.6157 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.7252, allocations: 4.062 kB / 0.6157 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006071/0.7313, allocations: 3.716 MB / 0.6193 GB, free: 7.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.7326, allocations: 478.4 kB / 0.6198 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/0.7328, allocations: 32 kB / 0.6198 GB, free: 7.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009852/0.7338, allocations: 95.89 kB / 0.6199 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.7341, allocations: 105.1 kB / 0.62 GB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.7342, allocations: 44.17 kB / 0.6201 GB, free: 7.066 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002229/0.7364, allocations: 1.472 MB / 0.6215 GB, free: 5.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7364, allocations: 4 kB / 0.6215 GB, free: 5.566 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002022/0.7385, allocations: 0.5976 MB / 0.6221 GB, free: 4.969 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007321/0.7458, allocations: 5.143 MB / 0.6271 GB, free: 15.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004126/0.7499, allocations: 2.51 MB / 0.6296 GB, free: 13.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7499, allocations: 0 / 0.6296 GB, free: 13.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002681/0.7526, allocations: 1.737 MB / 0.6313 GB, free: 11.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.7545, allocations: 418.2 kB / 0.6317 GB, free: 11.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03015/0.7847, allocations: 21.19 MB / 0.6523 GB, free: 4.902 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001836/0.7865, allocations: 2.006 MB / 0.6543 GB, free: 2.859 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001346/0.7879, allocations: 399.8 kB / 0.6547 GB, free: 2.465 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001193/0.7891, allocations: 0.9562 MB / 0.6556 GB, free: 1.508 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/0.7891, allocations: 0 / 0.6556 GB, free: 1.508 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3069/1.096, allocations: 51.98 MB / 0.7064 GB, free: 89.68 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/1.096, allocations: 262.7 kB / 0.7066 GB, free: 89.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.308/4.404, allocations: 64 / 0.7066 GB, free: 89.32 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1)