Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque2,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2") translateModel(ModelicaTest.MultiBody.Forces.Torque2,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 175.3 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.226/1.226, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009892/0.0009892, allocations: 100.5 kB / 292.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3488/0.3488, allocations: 44.22 MB / 387.5 MB, free: 38.83 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2998, allocations: 61.9 MB / 0.5096 GB, free: 38.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.4417, allocations: 112.3 MB / 0.6193 GB, free: 14.74 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.4421, allocations: 79.97 kB / 0.6193 GB, free: 14.66 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7863/1.228, allocations: 222 MB / 0.8361 GB, free: 8.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.228, allocations: 0 / 0.8361 GB, free: 8.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0009836/1.229, allocations: 239.9 kB / 0.8363 GB, free: 8.086 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.03923/1.269, allocations: 12.49 MB / 0.8485 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/1.269, allocations: 12.03 kB / 0.8485 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04988/1.319, allocations: 12.6 MB / 0.8608 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03402/1.353, allocations: 12.25 MB / 0.8728 GB, free: 2.488 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009795/1.354, allocations: 0.8745 MB / 0.8737 GB, free: 1.613 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005779/1.359, allocations: 1.167 MB / 0.8748 GB, free: 456 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4274/1.787, allocations: 27.72 MB / 0.9019 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000934/1.788, allocations: 144.3 kB / 0.902 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005508/1.793, allocations: 0.5437 MB / 0.9025 GB, free: 51.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00411/1.798, allocations: 2.535 MB / 0.905 GB, free: 51.67 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05821/1.856, allocations: 22.4 MB / 0.9269 GB, free: 51.55 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1731/2.029, allocations: 119.5 MB / 1.044 GB, free: 4.168 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04385/2.073, allocations: 13.69 MB / 1.057 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03895/2.112, allocations: 17.29 MB / 1.074 GB, free: 0.8906 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.444e-05/2.112, allocations: 88.16 kB / 1.074 GB, free: 0.8008 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=459): time 9.177e-06/2.112, allocations: 2.625 kB / 1.074 GB, free: 0.8008 MB / 0.5573 GB Notification: Performance of matching and sorting (n=543): time 0.5577/2.67, allocations: 63.01 MB / 1.135 GB, free: 107 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/2.67, allocations: 363.6 kB / 1.136 GB, free: 106.6 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03545/2.705, allocations: 10.27 MB / 1.146 GB, free: 105.9 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001983/2.707, allocations: 106.9 kB / 1.146 GB, free: 105.9 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.01023/2.718, allocations: 7.889 MB / 1.154 GB, free: 102.2 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004003/2.722, allocations: 2.025 MB / 1.156 GB, free: 101 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002889/2.725, allocations: 281 kB / 1.156 GB, free: 101 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.002041/2.727, allocations: 0.9057 MB / 1.157 GB, free: 100.7 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.011/2.738, allocations: 5.84 MB / 1.162 GB, free: 100.6 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01633/2.754, allocations: 13.73 MB / 1.176 GB, free: 90.53 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01701/2.771, allocations: 8.74 MB / 1.184 GB, free: 89.06 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007734/2.772, allocations: 81.03 kB / 1.184 GB, free: 89.06 MB / 0.573 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.05075/2.823, allocations: 22.33 MB / 1.206 GB, free: 81.96 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008374/2.824, allocations: 128.4 kB / 1.206 GB, free: 81.96 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001192/2.825, allocations: 275.5 kB / 1.207 GB, free: 81.96 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009179/2.834, allocations: 3.276 MB / 1.21 GB, free: 81.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01261/2.847, allocations: 3.352 MB / 1.213 GB, free: 81 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02594/2.873, allocations: 23.21 MB / 1.236 GB, free: 65.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01831/2.891, allocations: 0.8227 MB / 1.237 GB, free: 64.61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004902/2.896, allocations: 0.8166 MB / 1.237 GB, free: 63.83 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1264 * Number of states: 0 () * Number of discrete variables: 138 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1698): * Single equations (assignments): 1691 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01639/2.912, allocations: 5.282 MB / 1.243 GB, free: 59.2 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003897/2.916, allocations: 1.002 MB / 1.244 GB, free: 58.19 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02735/2.944, allocations: 12.62 MB / 1.256 GB, free: 48.05 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.401e-05/2.944, allocations: 60.77 kB / 1.256 GB, free: 47.99 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.422e-05/2.944, allocations: 19.94 kB / 1.256 GB, free: 47.97 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001433/2.944, allocations: 27.67 kB / 1.256 GB, free: 47.96 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06805/3.012, allocations: 28.69 MB / 1.284 GB, free: 24.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.984e-05/3.012, allocations: 8 kB / 1.284 GB, free: 24.94 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005428/3.018, allocations: 1.071 MB / 1.285 GB, free: 24.13 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007251/3.025, allocations: 2.831 MB / 1.288 GB, free: 22.17 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001426/3.026, allocations: 106.7 kB / 1.288 GB, free: 22.07 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3974/3.424, allocations: 21.84 MB / 1.309 GB, free: 99.45 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/3.424, allocations: 16.94 kB / 1.309 GB, free: 99.45 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03158/3.456, allocations: 22.67 MB / 1.331 GB, free: 94.73 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004853/3.46, allocations: 1.096 MB / 1.332 GB, free: 94.63 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004465/3.465, allocations: 100.8 kB / 1.333 GB, free: 94.63 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0078/3.473, allocations: 372.6 kB / 1.333 GB, free: 94.63 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002154/3.475, allocations: 353.4 kB / 1.333 GB, free: 94.62 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001307/3.476, allocations: 144 kB / 1.333 GB, free: 94.62 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01924/3.496, allocations: 7.42 MB / 1.341 GB, free: 94.34 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.52e-07/3.496, allocations: 0 / 1.341 GB, free: 94.34 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02178/3.517, allocations: 2.793 MB / 1.343 GB, free: 94.34 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.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 (451): * Single equations (assignments): 444 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.002205/3.52, allocations: 280.6 kB / 1.344 GB, free: 94.25 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02852/3.548, allocations: 14.68 MB / 1.358 GB, free: 93.66 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.745e-05/3.548, allocations: 3.281 kB / 1.358 GB, free: 93.66 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0125/3.561, allocations: 6.252 MB / 1.364 GB, free: 93.12 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01187/3.573, allocations: 1.331 MB / 1.365 GB, free: 93.08 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07063/3.643, allocations: 31.63 MB / 1.396 GB, free: 79.53 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02178/3.665, allocations: 8.164 MB / 1.404 GB, free: 77.16 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01766/3.683, allocations: 4.641 MB / 1.409 GB, free: 76.81 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004943/3.688, allocations: 0.6579 MB / 1.409 GB, free: 76.79 MB / 0.573 GB Notification: Performance of SimCode: time 1.493e-06/3.688, allocations: 4 kB / 1.409 GB, free: 76.79 MB / 0.573 GB Notification: Performance of Templates: time 0.2044/3.892, allocations: 106.6 MB / 1.514 GB, free: 14.11 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches