Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001195/0.001195, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001483, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2321/0.2321, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 73.28 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1232, allocations: 62.45 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01343/0.1367, allocations: 11.04 MB / 491.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008358/0.1451, allocations: 3.839 MB / 495 MB, free: 6.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.1473, allocations: 63.81 kB / 495.1 MB, free: 6.184 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005262/0.1526, allocations: 2.671 MB / 497.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004488/0.1572, allocations: 1.763 MB / 499.5 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001954/0.1591, allocations: 0.6862 MB / 0.4885 GB, free: 1.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005236/0.1644, allocations: 3.575 MB / 0.492 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005242/0.1697, allocations: 3.699 MB / 0.4956 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00276/0.1725, allocations: 1.464 MB / 0.497 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003337/0.1758, allocations: 1.994 MB / 0.4989 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00113/0.177, allocations: 324 kB / 0.4993 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002686/0.1797, allocations: 1.042 MB / 0.5003 GB, free: 4.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.1821, allocations: 1.785 MB / 0.502 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004045/0.1861, allocations: 2.093 MB / 0.5041 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2375/0.4237, allocations: 6.455 MB / 0.5104 GB, free: 18.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4238, allocations: 0 / 0.5104 GB, free: 18.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4238, allocations: 0.75 kB / 0.5104 GB, free: 18.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003703/0.4242, allocations: 1.125 kB / 0.5104 GB, free: 18.54 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02454/0.4487, allocations: 5.082 MB / 0.5153 GB, free: 16.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.4488, allocations: 9.75 kB / 0.5153 GB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001563/0.4503, allocations: 0.682 MB / 0.516 GB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007291/0.4576, allocations: 1.868 MB / 0.5178 GB, free: 16.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006402/0.4641, allocations: 2.426 MB / 0.5202 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004134/0.4645, allocations: 231.7 kB / 0.5204 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001859/0.4664, allocations: 301.8 kB / 0.5207 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02042/0.4868, allocations: 10.05 MB / 0.5305 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.4869, allocations: 37.22 kB / 0.5306 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004638/0.4874, allocations: 147.3 kB / 0.5307 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002762/0.4902, allocations: 1.806 MB / 0.5325 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/0.5079, allocations: 9.028 MB / 0.5413 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05346/0.5614, allocations: 37.21 MB / 0.5776 GB, free: 244 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01439/0.5759, allocations: 3.715 MB / 0.5812 GB, free: 12.39 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003048/0.579, allocations: 1.706 MB / 0.5829 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0013/0.5803, allocations: 0.6826 MB / 0.5836 GB, free: 9.887 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.437e-05/0.5804, allocations: 46.59 kB / 0.5836 GB, free: 9.836 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 6.141e-06/0.5804, allocations: 0 / 0.5836 GB, free: 9.836 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.04881/0.6292, allocations: 12.9 MB / 0.5962 GB, free: 12.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.889e-05/0.6294, allocations: 141.2 kB / 0.5963 GB, free: 12.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009005/0.6384, allocations: 3.963 MB / 0.6002 GB, free: 8.742 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004551/0.6389, allocations: 45.7 kB / 0.6003 GB, free: 8.691 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002695/0.6416, allocations: 2.968 MB / 0.6032 GB, free: 5.738 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009131/0.6425, allocations: 0.5455 MB / 0.6037 GB, free: 5.199 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003118/0.6456, allocations: 1.141 MB / 0.6048 GB, free: 4.051 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.6458, allocations: 305.1 kB / 0.6051 GB, free: 3.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004093/0.6499, allocations: 1.922 MB / 0.607 GB, free: 1.824 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00686/0.6568, allocations: 5.484 MB / 0.6123 GB, free: 10.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.6671, allocations: 8.05 MB / 0.6202 GB, free: 1.297 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/0.6673, allocations: 40 kB / 0.6202 GB, free: 1.258 MB / 462.1 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01832/0.6856, allocations: 7.884 MB / 0.6279 GB, free: 9.613 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.6858, allocations: 66.64 kB / 0.628 GB, free: 9.551 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001807/0.686, allocations: 124 kB / 0.6281 GB, free: 9.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002643/0.6887, allocations: 0.9106 MB / 0.629 GB, free: 8.516 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004352/0.693, allocations: 1.279 MB / 0.6302 GB, free: 7.234 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007033/0.7001, allocations: 5.183 MB / 0.6353 GB, free: 1.922 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004916/0.705, allocations: 303.5 kB / 0.6356 GB, free: 1.625 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001559/0.7066, allocations: 364 kB / 0.6359 GB, free: 1.27 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 579 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.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 (677): * Single equations (assignments): 673 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005876/0.7125, allocations: 1.961 MB / 0.6379 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009214/0.7134, allocations: 331.7 kB / 0.6382 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006425/0.7199, allocations: 2.79 MB / 0.6409 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.811e-05/0.72, allocations: 16 kB / 0.6409 GB, free: 12.15 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.72, allocations: 11.84 kB / 0.6409 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/0.72, allocations: 3.984 kB / 0.6409 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/0.7378, allocations: 7.196 MB / 0.648 GB, free: 4.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/0.7379, allocations: 4 kB / 0.648 GB, free: 4.891 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.7392, allocations: 239.6 kB / 0.6482 GB, free: 4.656 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002284/0.7415, allocations: 0.7187 MB / 0.6489 GB, free: 3.934 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/0.7418, allocations: 31.97 kB / 0.6489 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006349/0.7481, allocations: 4.76 MB / 0.6536 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.7482, allocations: 4.031 kB / 0.6536 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009013/0.7572, allocations: 5.138 MB / 0.6586 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.7585, allocations: 384.7 kB / 0.659 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/0.7595, allocations: 18.34 kB / 0.659 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001951/0.7615, allocations: 87.89 kB / 0.6591 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003725/0.7619, allocations: 88.45 kB / 0.6591 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/0.7621, allocations: 43.98 kB / 0.6592 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006015/0.7681, allocations: 2.492 MB / 0.6616 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.7681, allocations: 0 / 0.6616 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006917/0.7751, allocations: 0.8737 MB / 0.6625 GB, free: 5.863 MB / 0.4981 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009889/0.785, allocations: 5.766 MB / 0.6681 GB, free: 56 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01033/0.7953, allocations: 5.046 MB / 0.673 GB, free: 11.02 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/0.7954, allocations: 8 kB / 0.673 GB, free: 11.02 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002353/0.7978, allocations: 1.354 MB / 0.6744 GB, free: 9.648 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004122/0.8019, allocations: 431.3 kB / 0.6748 GB, free: 9.238 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3092/1.111, allocations: 47.89 MB / 0.7215 GB, free: 189.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002832/1.114, allocations: 3.063 MB / 0.7245 GB, free: 188 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004161/1.118, allocations: 1.783 MB / 0.7263 GB, free: 188 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001957/1.12, allocations: 1.748 MB / 0.728 GB, free: 186.6 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/1.12, allocations: 0 / 0.728 GB, free: 186.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/1.225, allocations: 67.67 MB / 0.7941 GB, free: 127.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.93, allocations: 7.219 kB / 0.7941 GB, free: 127.7 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches