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.001583/0.001583, allocations: 103.1 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.00134/0.00134, allocations: 187.9 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.517/1.517, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2389/0.2389, allocations: 43.53 MB / 313.9 MB, free: 0.5195 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.002313/0.002313, allocations: 69.97 kB / 382.7 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1329, allocations: 57.8 MB / 440.5 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01637/0.1494, allocations: 17.09 MB / 457.6 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01595/0.1654, allocations: 5.113 MB / 462.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004627/0.17, allocations: 111.7 kB / 462.8 MB, free: 476 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01356/0.1836, allocations: 5.062 MB / 467.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01123/0.1949, allocations: 2.707 MB / 470.6 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004003/0.1989, allocations: 1.084 MB / 471.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01366/0.2126, allocations: 6.828 MB / 478.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01121/0.2239, allocations: 5.954 MB / 484.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004941/0.2289, allocations: 2.55 MB / 487 MB, free: 8.148 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00605/0.2349, allocations: 3.473 MB / 490.5 MB, free: 4.664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002793/0.2378, allocations: 0.5469 MB / 491 MB, free: 4.117 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004975/0.2428, allocations: 1.432 MB / 492.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006332/0.2491, allocations: 3.238 MB / 495.7 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008487/0.2577, allocations: 3.655 MB / 499.4 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01451/0.2722, allocations: 11.03 MB / 0.4984 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2723, allocations: 0 / 0.4984 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2723, allocations: 0 / 0.4984 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003831/0.2727, allocations: 0 / 0.4984 GB, free: 0.6992 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: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.01994/0.2926, allocations: 7.915 MB / 0.5062 GB, free: 8.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.2927, allocations: 11.89 kB / 0.5062 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01467/0.3074, allocations: 2.834 MB / 0.5089 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01279/0.3202, allocations: 4.519 MB / 0.5134 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004377/0.3207, allocations: 386.2 kB / 0.5137 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002471/0.3232, allocations: 0.5151 MB / 0.5142 GB, free: 352 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3869/0.7101, allocations: 15.63 MB / 0.5295 GB, free: 80.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003263/0.7105, allocations: 70.8 kB / 0.5296 GB, free: 80.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001398/0.7119, allocations: 244.1 kB / 0.5298 GB, free: 80.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006018/0.7179, allocations: 3.059 MB / 0.5328 GB, free: 80.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03273/0.7507, allocations: 13.25 MB / 0.5457 GB, free: 77.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0681/0.8188, allocations: 61.59 MB / 0.6059 GB, free: 18.07 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01379/0.8327, allocations: 6.664 MB / 0.6124 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003875/0.8366, allocations: 4.024 MB / 0.6163 GB, free: 7.199 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01373/0.8503, allocations: 9.485 MB / 0.6256 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.846e-05/0.8504, allocations: 64.5 kB / 0.6256 GB, free: 13.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=269): time 5.841e-06/0.8504, allocations: 0 / 0.6256 GB, free: 13.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=311): time 0.08197/0.9324, allocations: 32.56 MB / 0.6574 GB, free: 12.78 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.9326, allocations: 243.8 kB / 0.6576 GB, free: 12.49 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00966/0.9423, allocations: 6.99 MB / 0.6645 GB, free: 5.512 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000683/0.943, allocations: 75.66 kB / 0.6645 GB, free: 5.434 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003581/0.9466, allocations: 4.77 MB / 0.6692 GB, free: 0.625 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001807/0.9484, allocations: 1.188 MB / 0.6704 GB, free: 15.42 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002762/0.9512, allocations: 1.911 MB / 0.6722 GB, free: 13.49 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.9513, allocations: 309.1 kB / 0.6725 GB, free: 13.19 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005725/0.957, allocations: 3.922 MB / 0.6764 GB, free: 9.258 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009614/0.9666, allocations: 9.248 MB / 0.6854 GB, free: 13.39 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01629/0.9829, allocations: 14.12 MB / 0.6992 GB, free: 12.66 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/0.9831, allocations: 56 kB / 0.6992 GB, free: 12.6 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1222) (initialization): time 0.02603/1.009, allocations: 14.97 MB / 0.7139 GB, free: 13.61 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/1.009, allocations: 84 kB / 0.7139 GB, free: 13.53 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000245/1.01, allocations: 188 kB / 0.7141 GB, free: 13.34 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005934/1.015, allocations: 2.305 MB / 0.7164 GB, free: 11.03 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007574/1.023, allocations: 2.172 MB / 0.7185 GB, free: 8.855 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.232/1.255, allocations: 14.41 MB / 0.7326 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008659/1.264, allocations: 0.5466 MB / 0.7331 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.266, allocations: 0.5423 MB / 0.7336 GB, free: 165.3 MB / 0.5138 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006526/1.272, allocations: 3.229 MB / 0.7368 GB, free: 165 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/1.274, allocations: 0.5846 MB / 0.7373 GB, free: 165 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/1.288, allocations: 7.724 MB / 0.7449 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.491e-05/1.288, allocations: 35.31 kB / 0.7449 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-05/1.288, allocations: 7.594 kB / 0.7449 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.995e-05/1.288, allocations: 14.86 kB / 0.7449 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02694/1.315, allocations: 16.27 MB / 0.7608 GB, free: 156.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.344e-05/1.315, allocations: 2.656 kB / 0.7608 GB, free: 156.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002946/1.318, allocations: 0.522 MB / 0.7613 GB, free: 156.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005208/1.323, allocations: 2.041 MB / 0.7633 GB, free: 156.5 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000752/1.324, allocations: 58.06 kB / 0.7634 GB, free: 156.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/1.339, allocations: 13.61 MB / 0.7767 GB, free: 148 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/1.339, allocations: 11 kB / 0.7767 GB, free: 148 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01619/1.355, allocations: 12.23 MB / 0.7886 GB, free: 136 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002964/1.358, allocations: 1.185 MB / 0.7898 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000905/1.359, allocations: 58.84 kB / 0.7898 GB, free: 134.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002596/1.362, allocations: 223.3 kB / 0.7901 GB, free: 134.7 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006278/1.362, allocations: 196.2 kB / 0.7902 GB, free: 134.5 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002266/1.363, allocations: 80 kB / 0.7903 GB, free: 134.4 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006716/1.369, allocations: 4.473 MB / 0.7947 GB, free: 130 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.71e-07/1.369, allocations: 0 / 0.7947 GB, free: 130 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009837/1.379, allocations: 1.729 MB / 0.7964 GB, free: 128.3 MB / 0.5138 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009443/1.38, allocations: 204.1 kB / 0.7966 GB, free: 128.1 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01655/1.397, allocations: 11.51 MB / 0.8078 GB, free: 116.7 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/1.397, allocations: 4 kB / 0.8078 GB, free: 116.7 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005076/1.402, allocations: 3.724 MB / 0.8115 GB, free: 112.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003985/1.406, allocations: 0.7552 MB / 0.8122 GB, free: 112.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02055/1.426, allocations: 16.25 MB / 0.8281 GB, free: 95.95 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005216/1.432, allocations: 4.893 MB / 0.8328 GB, free: 91.02 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006751/1.439, allocations: 2.969 MB / 0.8357 GB, free: 88.05 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001702/1.44, allocations: 407.3 kB / 0.8361 GB, free: 87.65 MB / 0.5138 GB Notification: Performance of SimCode: time 7.41e-07/1.44, allocations: 6.188 kB / 0.8361 GB, free: 87.64 MB / 0.5138 GB Notification: Performance of Templates: time 0.1086/1.549, allocations: 71.44 MB / 0.9059 GB, free: 16.32 MB / 0.5138 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches