Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00089/0.00089, allocations: 174 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.196/1.196, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007225/0.0007226, allocations: 98.3 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.277/0.277, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003542, allocations: 12 kB / 432 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09552/0.09589, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.2/0.2959, allocations: 45.56 MB / 0.5238 GB, free: 18.08 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01797/0.314, allocations: 9.812 MB / 0.5334 GB, free: 11.42 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007629/0.3216, allocations: 208.2 kB / 0.5336 GB, free: 11.39 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005543/0.3272, allocations: 2.339 MB / 0.5359 GB, free: 10.56 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01599/0.3432, allocations: 6.998 MB / 0.5427 GB, free: 7.637 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002908/0.3462, allocations: 0.5439 MB / 0.5433 GB, free: 7.422 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005356/0.3515, allocations: 4.422 MB / 0.5476 GB, free: 5.914 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00697/0.3585, allocations: 5.015 MB / 0.5525 GB, free: 3.887 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002082/0.3606, allocations: 1.225 MB / 0.5537 GB, free: 3.477 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00262/0.3633, allocations: 1.935 MB / 0.5556 GB, free: 2.902 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005303/0.3638, allocations: 142.5 kB / 0.5557 GB, free: 2.902 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001809/0.3656, allocations: 0.9155 MB / 0.5566 GB, free: 2.684 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001391/0.367, allocations: 1.668 MB / 0.5582 GB, free: 1.832 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001463/0.3685, allocations: 1.886 MB / 0.5601 GB, free: 460 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005042/0.3736, allocations: 5.54 MB / 0.5655 GB, free: 12.69 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.259e-06/0.3736, allocations: 0 / 0.5655 GB, free: 12.69 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3736, allocations: 3.938 kB / 0.5655 GB, free: 12.69 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000156/0.3738, allocations: 0 / 0.5655 GB, free: 12.69 MB / 394.7 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.01401/0.3878, allocations: 4.38 MB / 0.5697 GB, free: 9.445 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.3878, allocations: 12.03 kB / 0.5698 GB, free: 9.434 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006356/0.3942, allocations: 1.937 MB / 0.5717 GB, free: 7.488 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004219/0.3984, allocations: 2.358 MB / 0.574 GB, free: 5.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.3986, allocations: 238.1 kB / 0.5742 GB, free: 4.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006553/0.3993, allocations: 327.7 kB / 0.5745 GB, free: 4.516 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/0.416, allocations: 10.72 MB / 0.585 GB, free: 9.141 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.746e-05/0.4162, allocations: 39.59 kB / 0.585 GB, free: 9.102 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004259/0.4166, allocations: 163.8 kB / 0.5852 GB, free: 8.941 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003042/0.4196, allocations: 1.982 MB / 0.5871 GB, free: 6.957 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01703/0.4367, allocations: 9.603 MB / 0.5965 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04552/0.4822, allocations: 39.23 MB / 0.6348 GB, free: 5.031 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/0.4949, allocations: 3.939 MB / 0.6386 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002517/0.4975, allocations: 1.876 MB / 0.6405 GB, free: 15.05 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001006/0.4985, allocations: 0.6789 MB / 0.6411 GB, free: 14.26 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.4985, allocations: 55.5 kB / 0.6412 GB, free: 14.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 3.857e-06/0.4985, allocations: 0 / 0.6412 GB, free: 14.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=157): time 0.03981/0.5384, allocations: 13.92 MB / 0.6548 GB, free: 160 kB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/0.5385, allocations: 149.6 kB / 0.6549 GB, free: 15.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004884/0.5434, allocations: 4.05 MB / 0.6589 GB, free: 11.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002031/0.5436, allocations: 49.64 kB / 0.6589 GB, free: 11.84 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001838/0.5454, allocations: 3.118 MB / 0.662 GB, free: 8.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005696/0.546, allocations: 0.6211 MB / 0.6626 GB, free: 8.051 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.5463, allocations: 119.9 kB / 0.6627 GB, free: 7.934 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003162/0.5466, allocations: 0.55 MB / 0.6632 GB, free: 7.375 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002869/0.5495, allocations: 2.092 MB / 0.6653 GB, free: 5.277 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005027/0.5545, allocations: 5.784 MB / 0.6709 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009311/0.5638, allocations: 8.568 MB / 0.6793 GB, free: 3.227 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.936e-05/0.5639, allocations: 36 kB / 0.6793 GB, free: 3.191 MB / 0.4948 GB Notification: Performance of matching and sorting (n=761) (initialization): time 0.1811/0.745, allocations: 8.377 MB / 0.6875 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.814e-05/0.7451, allocations: 61.19 kB / 0.6876 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/0.7453, allocations: 135.7 kB / 0.6877 GB, free: 146.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/0.7476, allocations: 0.9105 MB / 0.6886 GB, free: 146.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003871/0.7514, allocations: 1.371 MB / 0.6899 GB, free: 146.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005592/0.7571, allocations: 4.859 MB / 0.6947 GB, free: 144.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003813/0.7609, allocations: 328.7 kB / 0.695 GB, free: 144.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005623/0.7615, allocations: 378.5 kB / 0.6953 GB, free: 144.9 MB / 0.4948 GB 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 (722): * Single equations (assignments): 718 * 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.002793/0.7643, allocations: 2.087 MB / 0.6974 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004562/0.7647, allocations: 343.3 kB / 0.6977 GB, free: 144.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004954/0.7697, allocations: 3.166 MB / 0.7008 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.019e-05/0.7698, allocations: 23.62 kB / 0.7008 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.7698, allocations: 3.344 kB / 0.7008 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/0.7698, allocations: 11.78 kB / 0.7008 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.7815, allocations: 7.97 MB / 0.7086 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.7816, allocations: 3.156 kB / 0.7086 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.7829, allocations: 311.3 kB / 0.7089 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001808/0.7847, allocations: 0.7192 MB / 0.7096 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/0.7848, allocations: 45.27 kB / 0.7097 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004812/0.7897, allocations: 4.426 MB / 0.714 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.7897, allocations: 7.094 kB / 0.714 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008127/0.7978, allocations: 5.723 MB / 0.7196 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/0.7995, allocations: 0.6302 MB / 0.7202 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004739/0.8, allocations: 32.86 kB / 0.7202 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.8014, allocations: 98 kB / 0.7203 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003976/0.8018, allocations: 102.7 kB / 0.7204 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.8019, allocations: 54.36 kB / 0.7205 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004606/0.8065, allocations: 2.53 MB / 0.7229 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.11e-07/0.8066, allocations: 1.766 kB / 0.7229 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005128/0.8117, allocations: 0.9589 MB / 0.7239 GB, free: 134.2 MB / 0.4948 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 (126): * Single equations (assignments): 122 * 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.0004175/0.8121, allocations: 163.3 kB / 0.724 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008328/0.8205, allocations: 5.017 MB / 0.7289 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.8205, allocations: 0 / 0.7289 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002186/0.8227, allocations: 1.549 MB / 0.7304 GB, free: 131.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003468/0.8262, allocations: 413.4 kB / 0.7308 GB, free: 131.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01583/0.8421, allocations: 11.14 MB / 0.7417 GB, free: 125.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003136/0.8452, allocations: 3.226 MB / 0.7449 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/0.8463, allocations: 316.2 kB / 0.7452 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of SimCode: time 6.01e-07/0.8463, allocations: 0 / 0.7452 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.08004/0.9264, allocations: 74.74 MB / 0.8181 GB, free: 51.59 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches