Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 193.5 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 226.5 MB / 244.1 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007388/0.0007388, allocations: 99.45 kB / 296.1 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.285/0.285, allocations: 44.83 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002665, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2723, allocations: 62.95 MB / 0.5165 GB, free: 37.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.4012, allocations: 113.2 MB / 0.627 GB, free: 8.137 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.4014, allocations: 75.97 kB / 0.6271 GB, free: 8.062 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.656/1.057, allocations: 221.9 MB / 0.8438 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.555e-06/1.058, allocations: 4 kB / 0.8438 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000686/1.058, allocations: 235.9 kB / 0.844 GB, free: 13.15 MB / 0.4948 GB 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.03814/1.096, allocations: 12.04 MB / 0.8558 GB, free: 1.012 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/1.096, allocations: 8.031 kB / 0.8558 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03996/1.136, allocations: 9.324 MB / 0.8649 GB, free: 7.648 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02659/1.163, allocations: 10.58 MB / 0.8752 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009758/1.164, allocations: 0.8749 MB / 0.8761 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0054/1.169, allocations: 1.168 MB / 0.8772 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5599/1.729, allocations: 27.38 MB / 0.904 GB, free: 56.87 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008697/1.73, allocations: 146.3 kB / 0.9041 GB, free: 56.87 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004526/1.735, allocations: 0.5455 MB / 0.9046 GB, free: 56.87 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003751/1.739, allocations: 2.537 MB / 0.9071 GB, free: 56.84 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04883/1.787, allocations: 21.96 MB / 0.9286 GB, free: 56.72 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1305/1.918, allocations: 119.3 MB / 1.045 GB, free: 13.62 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03024/1.948, allocations: 12.61 MB / 1.057 GB, free: 10.07 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008546/1.957, allocations: 7.144 MB / 1.064 GB, free: 7.129 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03029/1.987, allocations: 17.19 MB / 1.081 GB, free: 10.23 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.813e-05/1.987, allocations: 82.16 kB / 1.081 GB, free: 10.15 MB / 0.573 GB Notification: Performance of pre-optimization done (n=459): time 7.423e-06/1.987, allocations: 0 / 1.081 GB, free: 10.15 MB / 0.573 GB Notification: Performance of matching and sorting (n=543): time 0.4024/2.39, allocations: 61.47 MB / 1.141 GB, free: 114.7 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/2.39, allocations: 371.9 kB / 1.142 GB, free: 114.3 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02282/2.413, allocations: 11.5 MB / 1.153 GB, free: 113.5 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.001289/2.414, allocations: 111.4 kB / 1.153 GB, free: 113.5 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.006576/2.421, allocations: 7.898 MB / 1.161 GB, free: 109.8 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.002831/2.423, allocations: 2.012 MB / 1.163 GB, free: 108.7 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001737/2.425, allocations: 283.3 kB / 1.163 GB, free: 108.7 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.0008327/2.426, allocations: 0.8981 MB / 1.164 GB, free: 108.3 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01117/2.437, allocations: 5.833 MB / 1.169 GB, free: 108.3 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01418/2.451, allocations: 13.79 MB / 1.183 GB, free: 98.22 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02325/2.475, allocations: 21.32 MB / 1.204 GB, free: 86.86 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004613/2.475, allocations: 81 kB / 1.204 GB, free: 86.86 MB / 0.5887 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.0425/2.518, allocations: 22.32 MB / 1.226 GB, free: 78.96 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.000273/2.518, allocations: 123.9 kB / 1.226 GB, free: 78.96 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004817/2.519, allocations: 278.3 kB / 1.226 GB, free: 78.96 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00866/2.527, allocations: 3.243 MB / 1.229 GB, free: 78.37 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01209/2.539, allocations: 3.353 MB / 1.232 GB, free: 77.99 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0242/2.564, allocations: 22.61 MB / 1.255 GB, free: 65.84 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01359/2.577, allocations: 0.8273 MB / 1.255 GB, free: 65.59 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003414/2.581, allocations: 0.8109 MB / 1.256 GB, free: 65.48 MB / 0.5887 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.0145/2.595, allocations: 5.293 MB / 1.261 GB, free: 61.3 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004081/2.599, allocations: 1.006 MB / 1.262 GB, free: 60.28 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02359/2.623, allocations: 12.62 MB / 1.275 GB, free: 50.14 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.268e-05/2.623, allocations: 57.41 kB / 1.275 GB, free: 50.08 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.975e-05/2.623, allocations: 19.05 kB / 1.275 GB, free: 50.07 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001229/2.623, allocations: 22.83 kB / 1.275 GB, free: 50.07 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05166/2.675, allocations: 28.71 MB / 1.303 GB, free: 27 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.859e-05/2.675, allocations: 8 kB / 1.303 GB, free: 26.99 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004868/2.68, allocations: 1.075 MB / 1.304 GB, free: 26.18 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006603/2.686, allocations: 2.827 MB / 1.307 GB, free: 24.21 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001084/2.688, allocations: 102.9 kB / 1.307 GB, free: 24.11 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.324/3.012, allocations: 21.33 MB / 1.327 GB, free: 107.4 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.978e-05/3.012, allocations: 17.16 kB / 1.327 GB, free: 107.4 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03232/3.044, allocations: 19.69 MB / 1.347 GB, free: 105.9 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004076/3.048, allocations: 1.089 MB / 1.348 GB, free: 105.8 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00402/3.052, allocations: 100.8 kB / 1.348 GB, free: 105.8 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007656/3.06, allocations: 374.4 kB / 1.348 GB, free: 105.8 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00201/3.062, allocations: 350 kB / 1.349 GB, free: 105.8 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000757/3.063, allocations: 144.9 kB / 1.349 GB, free: 105.8 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.01784/3.081, allocations: 7.415 MB / 1.356 GB, free: 105.5 MB / 0.5887 GB Notification: Performance of sort global known variables: time 6.51e-07/3.081, allocations: 0 / 1.356 GB, free: 105.5 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.01769/3.098, allocations: 2.798 MB / 1.359 GB, free: 105.5 MB / 0.5887 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.001646/3.1, allocations: 280.5 kB / 1.359 GB, free: 105.4 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.02607/3.126, allocations: 14.69 MB / 1.373 GB, free: 104.9 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/3.126, allocations: 3.531 kB / 1.373 GB, free: 104.9 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.01043/3.137, allocations: 6.245 MB / 1.379 GB, free: 104.3 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02657/3.163, allocations: 1.399 MB / 1.381 GB, free: 104.3 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06388/3.227, allocations: 33.04 MB / 1.413 GB, free: 92.24 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02024/3.247, allocations: 7.918 MB / 1.421 GB, free: 89.86 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004679/3.252, allocations: 0.7456 MB / 1.421 GB, free: 89.84 MB / 0.5887 GB Notification: Performance of SimCode: time 1.473e-06/3.252, allocations: 4 kB / 1.421 GB, free: 89.84 MB / 0.5887 GB Notification: Performance of Templates: time 0.76/4.012, allocations: 355.9 MB / 1.769 GB, free: 15.82 MB / 0.6355 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches