Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_3_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.001155/0.001156, allocations: 102.8 kB / 16.27 MB, free: 5.93 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.001133/0.001133, allocations: 188.1 kB / 17.2 MB, free: 5.574 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.382/1.382, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2024/0.2024, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 254.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.001434/0.001434, allocations: 68.69 kB / 382.8 MB, free: 56.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1033, allocations: 57.79 MB / 440.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01105/0.1144, allocations: 11.79 MB / 452.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008929/0.1234, allocations: 3.917 MB / 456.3 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002318/0.1258, allocations: 71.81 kB / 456.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005611/0.1314, allocations: 2.71 MB / 459.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005732/0.1372, allocations: 1.879 MB / 461 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002212/0.1394, allocations: 0.6979 MB / 461.7 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007132/0.1466, allocations: 3.758 MB / 465.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006421/0.1531, allocations: 3.793 MB / 469.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003659/0.1568, allocations: 1.55 MB / 470.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003983/0.1608, allocations: 2.13 MB / 472.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001584/0.1624, allocations: 348 kB / 473.3 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002955/0.1654, allocations: 1.069 MB / 474.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002942/0.1684, allocations: 1.921 MB / 476.2 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004024/0.1724, allocations: 2.264 MB / 478.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008527/0.181, allocations: 6.974 MB / 485.5 MB, free: 9.719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.181, allocations: 4 kB / 485.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.181, allocations: 0 / 485.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000264/0.1813, allocations: 0 / 485.5 MB, free: 9.715 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01978/0.2011, allocations: 5.345 MB / 490.8 MB, free: 4.301 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.2011, allocations: 11.89 kB / 490.8 MB, free: 4.289 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001788/0.2029, allocations: 0.7278 MB / 491.6 MB, free: 3.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007662/0.2106, allocations: 1.894 MB / 493.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006434/0.2171, allocations: 2.787 MB / 496.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002394/0.2174, allocations: 246 kB / 496.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001455/0.2188, allocations: 319.6 kB / 496.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02004/0.2389, allocations: 10.74 MB / 0.4957 GB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.2391, allocations: 39.67 kB / 0.4957 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006695/0.2397, allocations: 151.9 kB / 0.4958 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00334/0.2431, allocations: 1.978 MB / 0.4978 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01877/0.2619, allocations: 9.634 MB / 0.5072 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2476/0.5095, allocations: 39.25 MB / 0.5455 GB, free: 60.56 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01422/0.5238, allocations: 3.934 MB / 0.5494 GB, free: 59.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002558/0.5264, allocations: 1.89 MB / 0.5512 GB, free: 59.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009548/0.5274, allocations: 0.6715 MB / 0.5519 GB, free: 59.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.5274, allocations: 49.94 kB / 0.5519 GB, free: 59.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=151): time 4.889e-06/0.5274, allocations: 0.6562 kB / 0.5519 GB, free: 59.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=157): time 0.04327/0.5707, allocations: 13.97 MB / 0.5655 GB, free: 54.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.5708, allocations: 147.3 kB / 0.5657 GB, free: 54.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005033/0.5758, allocations: 4.084 MB / 0.5697 GB, free: 52.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003596/0.5762, allocations: 48.8 kB / 0.5697 GB, free: 51.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.5776, allocations: 3.128 MB / 0.5728 GB, free: 49.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006367/0.5783, allocations: 0.6211 MB / 0.5734 GB, free: 48.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001261/0.5795, allocations: 1.194 MB / 0.5745 GB, free: 48.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.267e-05/0.5796, allocations: 306.1 kB / 0.5748 GB, free: 47.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.5821, allocations: 2.095 MB / 0.5769 GB, free: 45.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004241/0.5864, allocations: 5.791 MB / 0.5825 GB, free: 38.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007243/0.5936, allocations: 8.565 MB / 0.5909 GB, free: 27.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.287e-05/0.5938, allocations: 40 kB / 0.5909 GB, free: 27.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=757) (initialization): time 0.01386/0.6076, allocations: 8.404 MB / 0.5992 GB, free: 19.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.218e-05/0.6078, allocations: 60 kB / 0.5992 GB, free: 19.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/0.6079, allocations: 132 kB / 0.5993 GB, free: 19.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002215/0.6101, allocations: 0.9133 MB / 0.6002 GB, free: 18.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004126/0.6143, allocations: 1.372 MB / 0.6016 GB, free: 17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005833/0.6201, allocations: 5.187 MB / 0.6066 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00528/0.6255, allocations: 319.4 kB / 0.6069 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001138/0.6266, allocations: 372.1 kB / 0.6073 GB, free: 11.01 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 36 (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 (718): * Single equations (assignments): 714 * 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.003225/0.6299, allocations: 2.096 MB / 0.6093 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008185/0.6307, allocations: 347.5 kB / 0.6097 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005231/0.6359, allocations: 3.17 MB / 0.6128 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.518e-05/0.636, allocations: 16 kB / 0.6128 GB, free: 5.352 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.636, allocations: 4 kB / 0.6128 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.899e-05/0.636, allocations: 12.34 kB / 0.6128 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01285/0.6489, allocations: 7.948 MB / 0.6206 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.649, allocations: 4 kB / 0.6206 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.6505, allocations: 307.6 kB / 0.6209 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002139/0.6527, allocations: 0.7161 MB / 0.6216 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001729/0.6528, allocations: 39.91 kB / 0.6216 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006234/0.6591, allocations: 4.767 MB / 0.6262 GB, free: 7.402 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.6591, allocations: 3.812 kB / 0.6263 GB, free: 7.402 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009677/0.6688, allocations: 5.73 MB / 0.6318 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/0.6708, allocations: 0.6214 MB / 0.6325 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004932/0.6713, allocations: 20 kB / 0.6325 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.6727, allocations: 95.81 kB / 0.6326 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003231/0.673, allocations: 100.8 kB / 0.6327 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/0.6732, allocations: 59.8 kB / 0.6327 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003881/0.6771, allocations: 2.558 MB / 0.6352 GB, free: 14.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.693e-06/0.6771, allocations: 4 kB / 0.6352 GB, free: 14.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004775/0.6819, allocations: 0.9635 MB / 0.6362 GB, free: 13.2 MB / 446.1 MB 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 (126): * Single equations (assignments): 122 * 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.008942/0.6908, allocations: 6.354 MB / 0.6424 GB, free: 6.797 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009023/0.6999, allocations: 5.691 MB / 0.6479 GB, free: 1.148 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.6999, allocations: 0 / 0.6479 GB, free: 1.148 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002143/0.7021, allocations: 1.55 MB / 0.6494 GB, free: 15.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002844/0.7049, allocations: 447.4 kB / 0.6499 GB, free: 15.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07333/0.7783, allocations: 51.24 MB / 0.6999 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004512/0.7829, allocations: 3.237 MB / 0.7031 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004475/0.7874, allocations: 1.893 MB / 0.7049 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002971/0.7903, allocations: 1.878 MB / 0.7067 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of SimCode: time 1.824e-06/0.7904, allocations: 0 / 0.7067 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2916/1.082, allocations: 71.22 MB / 0.7763 GB, free: 145 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/13.16, allocations: 17.47 kB / 0.7763 GB, free: 145 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches