Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001161, allocations: 86.14 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001397/0.001396, allocations: 179 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.3 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002618, allocations: 7.375 kB / 300.9 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 50.43 MB / 351.4 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01203/0.1158, allocations: 11.97 MB / 363.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008403/0.1242, allocations: 4.617 MB / 368 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001889/0.1261, allocations: 71.75 kB / 368 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.1285, allocations: 0.7808 MB / 368.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003425/0.132, allocations: 1.15 MB / 370 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001945/0.1339, allocations: 0.6854 MB / 370.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005207/0.1391, allocations: 4.3 MB / 374.9 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002899/0.1421, allocations: 2.31 MB / 377.2 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002028/0.1441, allocations: 1.385 MB / 378.6 MB, free: 196 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002473/0.1466, allocations: 1.84 MB / 380.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000534/0.1471, allocations: 220 kB / 380.7 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.1486, allocations: 0.5464 MB / 381.2 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008634/0.1495, allocations: 0.942 MB / 382.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001071/0.1506, allocations: 0.8082 MB / 383 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005834/0.1564, allocations: 5.957 MB / 388.9 MB, free: 5.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1564, allocations: 0 / 388.9 MB, free: 5.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1565, allocations: 0 / 388.9 MB, free: 5.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001929/0.1567, allocations: 0 / 388.9 MB, free: 5.848 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01053/0.1672, allocations: 4.271 MB / 393.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1673, allocations: 11.97 kB / 393.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001369/0.1686, allocations: 0.5418 MB / 393.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004411/0.1731, allocations: 0.8887 MB / 394.7 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004599/0.1777, allocations: 2.585 MB / 397.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.1779, allocations: 254.8 kB / 397.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005331/0.1784, allocations: 343.9 kB / 397.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007695/0.1861, allocations: 4.568 MB / 402.4 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-05/0.1862, allocations: 0 / 402.4 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003087/0.1865, allocations: 140 kB / 402.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/0.1867, allocations: 158.8 kB / 402.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00694/0.1936, allocations: 3.934 MB / 406.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02166/0.2153, allocations: 14.3 MB / 420.9 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2039/0.4192, allocations: 6.981 MB / 427.9 MB, free: 57.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003438/0.4227, allocations: 1.694 MB / 429.6 MB, free: 57.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007408/0.4301, allocations: 4.255 MB / 433.9 MB, free: 56.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/0.4302, allocations: 55.94 kB / 433.9 MB, free: 56.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 4.448e-06/0.4302, allocations: 0 / 433.9 MB, free: 56.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.0175/0.4477, allocations: 7.921 MB / 441.8 MB, free: 54.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.4478, allocations: 75.81 kB / 441.9 MB, free: 54.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003456/0.4513, allocations: 2.605 MB / 444.5 MB, free: 53.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001976/0.4515, allocations: 57.64 kB / 444.6 MB, free: 53.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009373/0.4524, allocations: 1.633 MB / 446.2 MB, free: 52.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/0.4528, allocations: 0.6222 MB / 446.8 MB, free: 51.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-05/0.4529, allocations: 35.88 kB / 446.9 MB, free: 51.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.697e-05/0.453, allocations: 381.9 kB / 447.2 MB, free: 51.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.4544, allocations: 0.9209 MB / 448.1 MB, free: 50.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.456, allocations: 1.31 MB / 449.5 MB, free: 50.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.4575, allocations: 1.131 MB / 450.6 MB, free: 49.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.4575, allocations: 3 kB / 450.6 MB, free: 49.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004798/0.4623, allocations: 3.077 MB / 453.7 MB, free: 48.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.4624, allocations: 13.59 kB / 453.7 MB, free: 48.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/0.4624, allocations: 11.03 kB / 453.7 MB, free: 48.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.4637, allocations: 0.5607 MB / 454.3 MB, free: 47.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.4652, allocations: 438.1 kB / 454.7 MB, free: 47.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007006/0.4722, allocations: 6.949 MB / 461.6 MB, free: 41.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.474, allocations: 97.41 kB / 461.7 MB, free: 41.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.4741, allocations: 81.36 kB / 461.8 MB, free: 41.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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,(8,62.5%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001916/0.476, allocations: 1.153 MB / 463 MB, free: 40.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004603/0.4765, allocations: 252.9 kB / 463.2 MB, free: 39.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004396/0.4809, allocations: 2.916 MB / 466.1 MB, free: 36.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.632e-05/0.481, allocations: 19.98 kB / 466.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.481, allocations: 18.11 kB / 466.2 MB, free: 36.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.481, allocations: 7.969 kB / 466.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008704/0.4897, allocations: 6.355 MB / 472.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.4898, allocations: 5.641 kB / 472.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.4909, allocations: 283.7 kB / 472.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/0.4924, allocations: 0.6187 MB / 473.4 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.4925, allocations: 47.97 kB / 473.5 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008548/0.5011, allocations: 10.48 MB / 483.9 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.5011, allocations: 4.062 kB / 484 MB, free: 18.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005968/0.5071, allocations: 4.168 MB / 488.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.5082, allocations: 0.5408 MB / 488.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000298/0.5085, allocations: 41.48 kB / 488.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009939/0.5095, allocations: 95.92 kB / 488.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002863/0.5098, allocations: 141.7 kB / 488.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.5099, allocations: 55.97 kB / 489 MB, free: 13.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002164/0.5121, allocations: 1.827 MB / 490.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5121, allocations: 0 / 490.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002325/0.5144, allocations: 0.6926 MB / 491.5 MB, free: 10.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006677/0.5211, allocations: 5.094 MB / 496.6 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004414/0.5255, allocations: 2.845 MB / 499.4 MB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.5256, allocations: 4 kB / 499.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002649/0.5282, allocations: 1.945 MB / 0.4896 GB, free: 1.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/0.5311, allocations: 0.5635 MB / 0.4902 GB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0428/0.5739, allocations: 22.21 MB / 0.5119 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00233/0.5763, allocations: 2.636 MB / 0.5145 GB, free: 6.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001957/0.5783, allocations: 0.5122 MB / 0.515 GB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001783/0.5801, allocations: 1.425 MB / 0.5164 GB, free: 4.363 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5801, allocations: 4 kB / 0.5164 GB, free: 4.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1039/0.684, allocations: 62.02 MB / 0.5769 GB, free: 6.809 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.6842, allocations: 294.7 kB / 0.5772 GB, free: 6.453 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.734/4.418, allocations: 0 / 0.5772 GB, free: 6.453 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)