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.001212/0.001212, allocations: 99.39 kB / 15.98 MB, free: 6.336 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.001109/0.001109, allocations: 194.5 kB / 16.9 MB, free: 6.184 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.631/1.631, allocations: 205.1 MB / 222.8 MB, free: 12.44 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.2265/0.2265, allocations: 43.51 MB / 313.6 MB, free: 0.7109 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.001392/0.001392, allocations: 69.81 kB / 382.2 MB, free: 56.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1101, allocations: 57.8 MB / 440 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.08662/0.1968, allocations: 90.51 MB / 0.5181 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3249/0.5217, allocations: 17.15 MB / 0.5348 GB, free: 1.199 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01752/0.5392, allocations: 387.6 kB / 0.5352 GB, free: 1.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009262/0.5485, allocations: 4.889 MB / 0.54 GB, free: 1.148 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007148/0.5558, allocations: 2.529 MB / 0.5425 GB, free: 1 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002566/0.5583, allocations: 1.008 MB / 0.5434 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01208/0.5704, allocations: 7.087 MB / 0.5504 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008953/0.5794, allocations: 6.262 MB / 0.5565 GB, free: 208 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006127/0.5856, allocations: 2.603 MB / 0.559 GB, free: 208 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007417/0.593, allocations: 3.865 MB / 0.5628 GB, free: 15.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002633/0.5957, allocations: 0.545 MB / 0.5633 GB, free: 15.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00435/0.6001, allocations: 1.445 MB / 0.5647 GB, free: 15.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004538/0.6047, allocations: 3.29 MB / 0.568 GB, free: 14 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006524/0.6112, allocations: 3.695 MB / 0.5716 GB, free: 11.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01627/0.6275, allocations: 11.09 MB / 0.5824 GB, free: 3.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.964e-06/0.6276, allocations: 0 / 0.5824 GB, free: 3.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6276, allocations: 0 / 0.5824 GB, free: 3.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005626/0.6281, allocations: 6.5 kB / 0.5824 GB, free: 3.836 MB / 430.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.02381/0.652, allocations: 7.918 MB / 0.5901 GB, free: 12.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.652, allocations: 15.83 kB / 0.5901 GB, free: 12.81 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01354/0.6656, allocations: 2.832 MB / 0.5929 GB, free: 9.965 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/0.6775, allocations: 4.508 MB / 0.5973 GB, free: 5.652 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004053/0.678, allocations: 386.3 kB / 0.5977 GB, free: 5.332 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002434/0.6804, allocations: 0.5103 MB / 0.5982 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03283/0.7133, allocations: 15.64 MB / 0.6134 GB, free: 4.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002131/0.7135, allocations: 74.73 kB / 0.6135 GB, free: 4.457 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008654/0.7144, allocations: 245 kB / 0.6138 GB, free: 4.273 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005106/0.7195, allocations: 3.061 MB / 0.6167 GB, free: 1.25 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02697/0.7465, allocations: 13.24 MB / 0.6297 GB, free: 4.242 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07783/0.8244, allocations: 61.59 MB / 0.6898 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01543/0.8398, allocations: 6.669 MB / 0.6963 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005614/0.8455, allocations: 4.02 MB / 0.7003 GB, free: 11.07 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01754/0.8631, allocations: 9.473 MB / 0.7095 GB, free: 1.512 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.235e-05/0.8632, allocations: 63.09 kB / 0.7096 GB, free: 1.441 MB / 0.545 GB Notification: Performance of pre-optimization done (n=269): time 5.52e-06/0.8632, allocations: 8 kB / 0.7096 GB, free: 1.434 MB / 0.545 GB Notification: Performance of matching and sorting (n=311): time 0.09011/0.9533, allocations: 32.58 MB / 0.7414 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/0.9535, allocations: 242.7 kB / 0.7416 GB, free: 412 kB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2271/1.181, allocations: 6.986 MB / 0.7484 GB, free: 247 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009163/1.182, allocations: 74.23 kB / 0.7485 GB, free: 246.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004738/1.186, allocations: 4.769 MB / 0.7532 GB, free: 244 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002306/1.189, allocations: 1.184 MB / 0.7543 GB, free: 243.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003535/1.192, allocations: 1.908 MB / 0.7562 GB, free: 242.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.144e-05/1.192, allocations: 308.9 kB / 0.7565 GB, free: 242 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006352/1.199, allocations: 3.918 MB / 0.7603 GB, free: 240.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008065/1.207, allocations: 9.254 MB / 0.7693 GB, free: 232.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01353/1.22, allocations: 14.12 MB / 0.7831 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002363/1.221, allocations: 52.34 kB / 0.7832 GB, free: 221.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1222) (initialization): time 0.02963/1.25, allocations: 14.98 MB / 0.7978 GB, free: 213.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002851/1.251, allocations: 95.58 kB / 0.7979 GB, free: 213.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003245/1.251, allocations: 188 kB / 0.7981 GB, free: 213.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005462/1.256, allocations: 2.297 MB / 0.8003 GB, free: 210.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007382/1.264, allocations: 2.176 MB / 0.8025 GB, free: 208.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01522/1.279, allocations: 14.41 MB / 0.8165 GB, free: 194.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008511/1.288, allocations: 0.546 MB / 0.8171 GB, free: 193.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001958/1.29, allocations: 0.5429 MB / 0.8176 GB, free: 193 MB / 0.5762 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.008027/1.298, allocations: 3.234 MB / 0.8207 GB, free: 189.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001841/1.3, allocations: 0.5862 MB / 0.8213 GB, free: 189.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/1.313, allocations: 7.711 MB / 0.8289 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-05/1.313, allocations: 32 kB / 0.8289 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-05/1.313, allocations: 10.81 kB / 0.8289 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.806e-05/1.313, allocations: 17.8 kB / 0.8289 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03144/1.344, allocations: 16.26 MB / 0.8448 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.653e-05/1.345, allocations: 4.188 kB / 0.8448 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/1.347, allocations: 0.5226 MB / 0.8453 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004936/1.352, allocations: 2.048 MB / 0.8473 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008291/1.353, allocations: 56 kB / 0.8474 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/1.368, allocations: 13.6 MB / 0.8606 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/1.368, allocations: 7.938 kB / 0.8606 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01844/1.386, allocations: 12.24 MB / 0.8726 GB, free: 136.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00352/1.39, allocations: 1.188 MB / 0.8738 GB, free: 135 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002049/1.392, allocations: 56 kB / 0.8738 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003982/1.396, allocations: 223.7 kB / 0.874 GB, free: 134.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009794/1.397, allocations: 185.9 kB / 0.8742 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000545/1.398, allocations: 85.8 kB / 0.8743 GB, free: 134.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.008102/1.406, allocations: 4.479 MB / 0.8787 GB, free: 130 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.01e-07/1.406, allocations: 0 / 0.8787 GB, free: 130 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009987/1.416, allocations: 1.73 MB / 0.8803 GB, free: 128.3 MB / 0.5762 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.001095/1.417, allocations: 193.6 kB / 0.8805 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01789/1.435, allocations: 11.52 MB / 0.8918 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/1.435, allocations: 4.688 kB / 0.8918 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006047/1.441, allocations: 3.717 MB / 0.8954 GB, free: 112.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006714/1.448, allocations: 0.7645 MB / 0.8962 GB, free: 112.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02872/1.476, allocations: 19.32 MB / 0.915 GB, free: 92.71 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007479/1.484, allocations: 4.886 MB / 0.9198 GB, free: 87.79 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.008228/1.492, allocations: 2.973 MB / 0.9227 GB, free: 84.81 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002352/1.494, allocations: 411.4 kB / 0.9231 GB, free: 84.41 MB / 0.5762 GB Notification: Performance of SimCode: time 1.302e-06/1.494, allocations: 0 / 0.9231 GB, free: 84.41 MB / 0.5762 GB Notification: Performance of Templates: time 0.3149/1.809, allocations: 71.44 MB / 0.9929 GB, free: 221.7 MB / 0.5762 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