Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",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.0009778/0.0009777, allocations: 99.25 kB / 16.99 MB, free: 6.402 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.0008719/0.000872, allocations: 178.7 kB / 17.88 MB, free: 5.957 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.323/1.323, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1948/0.1948, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003168, allocations: 8 kB / 409.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1381, allocations: 61.92 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.04552/0.1837, allocations: 42.5 MB / 0.502 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2995/0.4832, allocations: 10.15 MB / 0.5119 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01189/0.4952, allocations: 207.2 kB / 0.5121 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009127/0.5044, allocations: 2.097 MB / 0.5142 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02536/0.5298, allocations: 6.166 MB / 0.5202 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004054/0.5339, allocations: 0.5062 MB / 0.5207 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005988/0.5399, allocations: 2.019 MB / 0.5226 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00962/0.5495, allocations: 4.417 MB / 0.527 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003829/0.5534, allocations: 0.9532 MB / 0.5279 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003873/0.5573, allocations: 1.271 MB / 0.5291 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001548/0.5589, allocations: 130.5 kB / 0.5293 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003335/0.5622, allocations: 0.7733 MB / 0.53 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002544/0.5648, allocations: 1.46 MB / 0.5314 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002217/0.567, allocations: 0.7973 MB / 0.5322 GB, free: 6.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006978/0.574, allocations: 5.246 MB / 0.5373 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.5741, allocations: 0 / 0.5373 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5741, allocations: 0 / 0.5373 GB, free: 3.621 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003014/0.5744, allocations: 0 / 0.5373 GB, free: 3.621 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01799/0.5924, allocations: 4.366 MB / 0.5416 GB, free: 1.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.5925, allocations: 7.562 kB / 0.5416 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003505/0.596, allocations: 0.6904 MB / 0.5423 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009616/0.6056, allocations: 2.208 MB / 0.5444 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007792/0.6135, allocations: 2.311 MB / 0.5467 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003809/0.6139, allocations: 224.1 kB / 0.5469 GB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002175/0.6161, allocations: 310.8 kB / 0.5472 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02782/0.6439, allocations: 10.28 MB / 0.5572 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003013/0.6443, allocations: 39.59 kB / 0.5573 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00173/0.646, allocations: 151.8 kB / 0.5574 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003935/0.65, allocations: 1.868 MB / 0.5593 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02125/0.6713, allocations: 9.257 MB / 0.5683 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05807/0.7294, allocations: 37.66 MB / 0.6051 GB, free: 6.289 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01341/0.7428, allocations: 3.754 MB / 0.6087 GB, free: 2.387 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001121/0.744, allocations: 0.6774 MB / 0.6094 GB, free: 1.609 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.55e-05/0.7441, allocations: 43.12 kB / 0.6094 GB, free: 1.559 MB / 446.1 MB Notification: Performance of pre-optimization done (n=130): time 1.246e-05/0.7441, allocations: 4 kB / 0.6094 GB, free: 1.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=136): time 0.04743/0.7916, allocations: 13.25 MB / 0.6224 GB, free: 4.133 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.8e-05/0.7917, allocations: 145.1 kB / 0.6225 GB, free: 3.961 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008151/0.7999, allocations: 4.084 MB / 0.6265 GB, free: 15.89 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002961/0.8002, allocations: 46.91 kB / 0.6266 GB, free: 15.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002202/0.8024, allocations: 3.008 MB / 0.6295 GB, free: 12.85 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006557/0.8031, allocations: 0.5563 MB / 0.63 GB, free: 12.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.8033, allocations: 108 kB / 0.6301 GB, free: 12.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003216/0.8036, allocations: 0.5336 MB / 0.6307 GB, free: 11.66 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002646/0.8063, allocations: 1.91 MB / 0.6325 GB, free: 9.742 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004644/0.8109, allocations: 5.481 MB / 0.6379 GB, free: 2.453 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004198/0.8152, allocations: 3.159 MB / 0.641 GB, free: 15.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.103e-05/0.8152, allocations: 36 kB / 0.641 GB, free: 15.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01339/0.8286, allocations: 7.882 MB / 0.6487 GB, free: 7.371 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.8288, allocations: 59.98 kB / 0.6488 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/0.829, allocations: 128.9 kB / 0.6489 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002418/0.8314, allocations: 0.9181 MB / 0.6498 GB, free: 6.266 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004077/0.8355, allocations: 1.294 MB / 0.651 GB, free: 4.969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006644/0.8422, allocations: 4.971 MB / 0.6559 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005072/0.8473, allocations: 307.6 kB / 0.6562 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/0.8484, allocations: 362.4 kB / 0.6565 GB, free: 15.22 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (680): * Single equations (assignments): 676 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004648/0.8531, allocations: 1.986 MB / 0.6585 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/0.8542, allocations: 331.7 kB / 0.6588 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006127/0.8603, allocations: 2.803 MB / 0.6615 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.095e-05/0.8604, allocations: 16 kB / 0.6615 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/0.8604, allocations: 4 kB / 0.6615 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.11e-05/0.8604, allocations: 3.984 kB / 0.6615 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01775/0.8782, allocations: 7.277 MB / 0.6687 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/0.8783, allocations: 4 kB / 0.6687 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001244/0.8795, allocations: 259.8 kB / 0.6689 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002081/0.8816, allocations: 0.7108 MB / 0.6696 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001547/0.8818, allocations: 43.97 kB / 0.6696 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005887/0.8877, allocations: 4.515 MB / 0.6741 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.241e-05/0.8877, allocations: 9.391 kB / 0.6741 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008501/0.8962, allocations: 5.295 MB / 0.6792 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001962/0.8983, allocations: 400.7 kB / 0.6796 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000915/0.8992, allocations: 20 kB / 0.6796 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/0.9007, allocations: 87.89 kB / 0.6797 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/0.901, allocations: 84.48 kB / 0.6798 GB, free: 7.105 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.9011, allocations: 51.97 kB / 0.6798 GB, free: 7.055 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004475/0.9056, allocations: 2.567 MB / 0.6824 GB, free: 4.508 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9056, allocations: 0 / 0.6824 GB, free: 4.508 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0061/0.9117, allocations: 0.9245 MB / 0.6833 GB, free: 3.586 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * 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 (104): * Single equations (assignments): 100 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009335/0.9211, allocations: 6.271 MB / 0.6894 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01025/0.9314, allocations: 4.593 MB / 0.6939 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/0.9314, allocations: 8.062 kB / 0.6939 GB, free: 8.664 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002219/0.9337, allocations: 1.349 MB / 0.6952 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002823/0.9365, allocations: 400.8 kB / 0.6956 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3723/1.309, allocations: 120.3 MB / 0.813 GB, free: 83.63 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003201/1.312, allocations: 3.196 MB / 0.8162 GB, free: 82.37 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004215/1.316, allocations: 1.792 MB / 0.8179 GB, free: 82.22 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002105/1.318, allocations: 1.789 MB / 0.8197 GB, free: 80.8 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/1.318, allocations: 0 / 0.8197 GB, free: 80.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.098/1.416, allocations: 72.97 MB / 0.8909 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000139/1.417, allocations: 203.5 kB / 0.8911 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.016/5.433, allocations: 0 / 0.8911 GB, free: 13.75 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat