Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.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: translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 96.78 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 174.1 kB / 16.58 MB, free: 5.684 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.823/1.823, allocations: 205.4 MB / 222.7 MB, free: 5.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3783/0.3783, allocations: 43.57 MB / 314.6 MB, free: 8.793 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.0005768/0.0005767, allocations: 16 kB / 384 MB, free: 7.969 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1354, allocations: 58.86 MB / 442.8 MB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.3123/0.4477, allocations: 82.18 MB / 0.5127 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04992/0.4977, allocations: 16.49 MB / 0.5288 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02296/0.5207, allocations: 385.5 kB / 0.5292 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01766/0.5384, allocations: 4.305 MB / 0.5334 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04237/0.5808, allocations: 12.55 MB / 0.5456 GB, free: 6.754 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006158/0.587, allocations: 0.8736 MB / 0.5465 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.04891/0.6359, allocations: 36.2 MB / 0.5818 GB, free: 1.641 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01219/0.6481, allocations: 7.438 MB / 0.5891 GB, free: 10.15 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0052/0.6534, allocations: 2.043 MB / 0.5911 GB, free: 8.098 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006128/0.6595, allocations: 3.205 MB / 0.5942 GB, free: 4.883 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001233/0.6608, allocations: 232 kB / 0.5944 GB, free: 4.656 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003268/0.6641, allocations: 0.9987 MB / 0.5954 GB, free: 3.656 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003564/0.6677, allocations: 2.825 MB / 0.5982 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002243/0.6699, allocations: 1.337 MB / 0.5995 GB, free: 15.47 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.6808, allocations: 8.764 MB / 0.608 GB, free: 6.691 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.6808, allocations: 0 / 0.608 GB, free: 6.691 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.6808, allocations: 0 / 0.608 GB, free: 6.691 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004425/0.6813, allocations: 0 / 0.608 GB, free: 6.691 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.01487/0.6962, allocations: 6.582 MB / 0.6145 GB, free: 28 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.6962, allocations: 8.031 kB / 0.6145 GB, free: 20 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01338/0.7096, allocations: 2.894 MB / 0.6173 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01317/0.7228, allocations: 4.43 MB / 0.6216 GB, free: 8.602 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000368/0.7232, allocations: 393.8 kB / 0.622 GB, free: 8.215 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002347/0.7256, allocations: 0.4997 MB / 0.6225 GB, free: 7.715 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2758/1.001, allocations: 15.61 MB / 0.6377 GB, free: 139.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003169/1.002, allocations: 74.17 kB / 0.6378 GB, free: 139.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001007/1.003, allocations: 243.8 kB / 0.638 GB, free: 139.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004442/1.007, allocations: 3.06 MB / 0.641 GB, free: 139.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02396/1.031, allocations: 13.2 MB / 0.6539 GB, free: 135.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07878/1.11, allocations: 61.6 MB / 0.7141 GB, free: 91.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01378/1.124, allocations: 6.652 MB / 0.7206 GB, free: 85.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004412/1.128, allocations: 4.02 MB / 0.7245 GB, free: 81.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01506/1.143, allocations: 9.477 MB / 0.7337 GB, free: 71.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.157e-05/1.144, allocations: 60.56 kB / 0.7338 GB, free: 71.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=269): time 6.663e-06/1.144, allocations: 0 / 0.7338 GB, free: 71.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=311): time 0.06668/1.21, allocations: 32.53 MB / 0.7656 GB, free: 39.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.524e-05/1.21, allocations: 243.9 kB / 0.7658 GB, free: 38.87 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008596/1.219, allocations: 6.948 MB / 0.7726 GB, free: 31.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008226/1.22, allocations: 65.7 kB / 0.7727 GB, free: 31.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002578/1.222, allocations: 4.773 MB / 0.7773 GB, free: 27.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001464/1.224, allocations: 1.182 MB / 0.7785 GB, free: 25.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005078/1.224, allocations: 184 kB / 0.7786 GB, free: 25.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003505/1.225, allocations: 0.7027 MB / 0.7793 GB, free: 25.04 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004838/1.23, allocations: 3.887 MB / 0.7831 GB, free: 21.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006953/1.237, allocations: 9.209 MB / 0.7921 GB, free: 9.316 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007518/1.244, allocations: 5.83 MB / 0.7978 GB, free: 3.484 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/1.244, allocations: 52 kB / 0.7979 GB, free: 3.434 MB / 494.1 MB Notification: Performance of matching and sorting (n=1222) (initialization): time 0.02924/1.274, allocations: 14.9 MB / 0.8124 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/1.274, allocations: 87.94 kB / 0.8125 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002265/1.274, allocations: 188 kB / 0.8127 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005612/1.28, allocations: 2.316 MB / 0.8149 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.229/1.509, allocations: 2.169 MB / 0.8171 GB, free: 137.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/1.523, allocations: 13.47 MB / 0.8302 GB, free: 133.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006286/1.529, allocations: 0.547 MB / 0.8308 GB, free: 133.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009891/1.53, allocations: 0.5415 MB / 0.8313 GB, free: 133.6 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * Number of states: 0 () * Number of discrete variables: 63 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1140): * Single equations (assignments): 1133 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004793/1.535, allocations: 3.241 MB / 0.8344 GB, free: 132.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/1.536, allocations: 0.5793 MB / 0.835 GB, free: 132.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01499/1.551, allocations: 7.705 MB / 0.8425 GB, free: 129.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-05/1.551, allocations: 32.44 kB / 0.8426 GB, free: 129.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.063e-05/1.552, allocations: 9.219 kB / 0.8426 GB, free: 129.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.459e-05/1.552, allocations: 21.62 kB / 0.8426 GB, free: 129.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03796/1.59, allocations: 16.23 MB / 0.8584 GB, free: 124.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.241e-05/1.59, allocations: 6.812 kB / 0.8585 GB, free: 124.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002687/1.592, allocations: 0.5193 MB / 0.859 GB, free: 124.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005133/1.598, allocations: 2.031 MB / 0.8609 GB, free: 123.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005726/1.598, allocations: 56.3 kB / 0.861 GB, free: 123.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01542/1.614, allocations: 12.68 MB / 0.8734 GB, free: 117.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/1.614, allocations: 7.625 kB / 0.8734 GB, free: 117.6 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01632/1.63, allocations: 12.2 MB / 0.8853 GB, free: 113 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002918/1.633, allocations: 1.198 MB / 0.8865 GB, free: 112.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/1.634, allocations: 54.58 kB / 0.8865 GB, free: 112.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002547/1.637, allocations: 225.3 kB / 0.8867 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004685/1.637, allocations: 197.3 kB / 0.8869 GB, free: 112 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002288/1.637, allocations: 80 kB / 0.887 GB, free: 111.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006321/1.644, allocations: 4.442 MB / 0.8913 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4e-07/1.644, allocations: 0 / 0.8913 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01034/1.654, allocations: 1.729 MB / 0.893 GB, free: 106.1 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007117/1.655, allocations: 200.1 kB / 0.8932 GB, free: 105.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01313/1.668, allocations: 9.382 MB / 0.9024 GB, free: 96.56 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.668, allocations: 4 kB / 0.9024 GB, free: 96.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005472/1.673, allocations: 3.706 MB / 0.906 GB, free: 92.83 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005781/1.679, allocations: 0.7218 MB / 0.9067 GB, free: 92.13 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02995/1.709, allocations: 18.67 MB / 0.9249 GB, free: 73.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006301/1.716, allocations: 4.906 MB / 0.9297 GB, free: 68.65 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007383/1.723, allocations: 2.972 MB / 0.9326 GB, free: 65.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001875/1.725, allocations: 411.3 kB / 0.933 GB, free: 65.27 MB / 0.4981 GB Notification: Performance of SimCode: time 1.593e-06/1.725, allocations: 0 / 0.933 GB, free: 65.27 MB / 0.4981 GB Notification: Performance of Templates: time 0.1067/1.832, allocations: 66.08 MB / 0.9976 GB, free: 15.29 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches