Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_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.001278/0.001278, allocations: 113.4 kB / 17.73 MB, free: 5.332 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.00152/0.001521, allocations: 188.2 kB / 18.66 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 55.91 kB / 328.1 MB, free: 3.742 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08377/0.08502, allocations: 46.61 MB / 374.7 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.1976/0.2827, allocations: 24.97 MB / 399.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0175/0.3002, allocations: 7.716 MB / 407.4 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005386/0.3056, allocations: 147.8 kB / 407.5 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01946/0.3251, allocations: 8.369 MB / 415.9 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01252/0.3377, allocations: 3.046 MB / 418.9 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006638/0.3443, allocations: 1.798 MB / 420.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01699/0.3613, allocations: 11.21 MB / 431.9 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03846/0.3998, allocations: 23.34 MB / 455.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01094/0.4108, allocations: 5.989 MB / 461.3 MB, free: 9.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01099/0.4219, allocations: 6.541 MB / 467.8 MB, free: 2.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004731/0.4266, allocations: 1.727 MB / 469.5 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006547/0.4332, allocations: 2.121 MB / 471.7 MB, free: 14.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00486/0.4381, allocations: 3.453 MB / 475.1 MB, free: 11.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01247/0.4506, allocations: 6.44 MB / 481.6 MB, free: 4.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02602/0.4766, allocations: 23.14 MB / 0.4929 GB, free: 13.6 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4767, allocations: 0 / 0.4929 GB, free: 13.6 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4767, allocations: 0 / 0.4929 GB, free: 13.6 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006027/0.4773, allocations: 0 / 0.4929 GB, free: 13.6 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04213/0.5194, allocations: 13.56 MB / 0.5061 GB, free: 15.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.5195, allocations: 8.031 kB / 0.5061 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006344/0.5259, allocations: 1.637 MB / 0.5077 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04014/0.566, allocations: 7.256 MB / 0.5148 GB, free: 7.004 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01491/0.581, allocations: 6.508 MB / 0.5212 GB, free: 424 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006451/0.5817, allocations: 0.7385 MB / 0.5219 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003548/0.5852, allocations: 0.9607 MB / 0.5228 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03786/0.6231, allocations: 16.63 MB / 0.539 GB, free: 14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002673/0.6234, allocations: 15.8 kB / 0.5391 GB, free: 13.98 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00268/0.6261, allocations: 408 kB / 0.5395 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005565/0.6267, allocations: 0.5948 MB / 0.54 GB, free: 12.98 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3842/1.011, allocations: 15.81 MB / 0.5555 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08307/1.094, allocations: 53.34 MB / 0.6076 GB, free: 99.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01663/1.111, allocations: 22.73 MB / 0.6298 GB, free: 78.71 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005507/1.116, allocations: 3.803 MB / 0.6335 GB, free: 76.29 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01821/1.134, allocations: 11.68 MB / 0.6449 GB, free: 64.53 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/1.134, allocations: 69.36 kB / 0.6449 GB, free: 64.45 MB / 478.1 MB Notification: Performance of pre-optimization done (n=357): time 4.88e-06/1.134, allocations: 0 / 0.6449 GB, free: 64.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=362): time 0.03391/1.168, allocations: 17.52 MB / 0.662 GB, free: 46.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/1.168, allocations: 86.25 kB / 0.6621 GB, free: 46.72 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005054/1.174, allocations: 4.769 MB / 0.6668 GB, free: 41.93 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003614/1.174, allocations: 81.7 kB / 0.6669 GB, free: 41.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/1.175, allocations: 4.494 MB / 0.6713 GB, free: 37.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007222/1.176, allocations: 1.259 MB / 0.6725 GB, free: 36.07 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001348/1.178, allocations: 1.183 MB / 0.6736 GB, free: 34.88 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.167e-05/1.178, allocations: 305.1 kB / 0.6739 GB, free: 34.57 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003212/1.181, allocations: 2.901 MB / 0.6768 GB, free: 31.67 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003867/1.185, allocations: 5.268 MB / 0.6819 GB, free: 25.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007574/1.192, allocations: 8.64 MB / 0.6903 GB, free: 15.54 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-05/1.192, allocations: 24 kB / 0.6904 GB, free: 15.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01225/1.205, allocations: 9.607 MB / 0.6997 GB, free: 5.883 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.365e-05/1.205, allocations: 48 kB / 0.6998 GB, free: 5.836 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.212e-05/1.205, allocations: 76 kB / 0.6999 GB, free: 5.762 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003239/1.208, allocations: 1.438 MB / 0.7013 GB, free: 4.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003928/1.212, allocations: 1.33 MB / 0.7026 GB, free: 2.988 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01542/1.227, allocations: 12.67 MB / 0.7149 GB, free: 6.047 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004309/1.232, allocations: 371.5 kB / 0.7153 GB, free: 5.684 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007047/1.232, allocations: 304 kB / 0.7156 GB, free: 5.387 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 355 * 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 (689): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005601/1.238, allocations: 3.916 MB / 0.7194 GB, free: 1.453 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009197/1.239, allocations: 450.4 kB / 0.7198 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/1.25, allocations: 6.764 MB / 0.7265 GB, free: 10.2 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00849/1.258, allocations: 5.584 MB / 0.7319 GB, free: 4.578 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.617e-05/1.259, allocations: 12 kB / 0.7319 GB, free: 4.566 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.31e-05/1.259, allocations: 19.92 kB / 0.7319 GB, free: 4.547 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03387/1.292, allocations: 15.47 MB / 0.747 GB, free: 4.953 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/1.293, allocations: 4 kB / 0.747 GB, free: 4.949 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002833/1.295, allocations: 0.667 MB / 0.7477 GB, free: 4.281 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003518/1.299, allocations: 1.302 MB / 0.749 GB, free: 2.977 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002859/1.299, allocations: 87.97 kB / 0.749 GB, free: 2.891 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2397/1.539, allocations: 11.54 MB / 0.7603 GB, free: 167.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/1.539, allocations: 7.719 kB / 0.7603 GB, free: 167.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01647/1.555, allocations: 10 MB / 0.7701 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003032/1.559, allocations: 1.018 MB / 0.7711 GB, free: 162.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005577/1.559, allocations: 72.94 kB / 0.7712 GB, free: 162.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/1.561, allocations: 222.6 kB / 0.7714 GB, free: 162.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008781/1.562, allocations: 271.3 kB / 0.7716 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002763/1.562, allocations: 116.8 kB / 0.7717 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004709/1.567, allocations: 3.232 MB / 0.7749 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.7e-07/1.567, allocations: 0 / 0.7749 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005952/1.573, allocations: 1.696 MB / 0.7766 GB, free: 161.2 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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 (333): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0148/1.588, allocations: 10.99 MB / 0.7873 GB, free: 156.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01095/1.599, allocations: 7.536 MB / 0.7946 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/1.599, allocations: 0 / 0.7946 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00554/1.605, allocations: 3.601 MB / 0.7982 GB, free: 151 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00496/1.609, allocations: 1.035 MB / 0.7992 GB, free: 150.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08606/1.696, allocations: 59.98 MB / 0.8577 GB, free: 91.19 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008836/1.704, allocations: 6.566 MB / 0.8642 GB, free: 84.59 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005581/1.71, allocations: 2.098 MB / 0.8662 GB, free: 82.48 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004813/1.715, allocations: 3.553 MB / 0.8697 GB, free: 78.93 MB / 0.5138 GB Notification: Performance of SimCode: time 1.082e-06/1.715, allocations: 0 / 0.8697 GB, free: 78.93 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.412/2.127, allocations: 135.6 MB / 1.002 GB, free: 133.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.92/22.05, allocations: 7.578 kB / 1.002 GB, free: 133.2 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)