Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.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.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007677/0.0007676, allocations: 94.34 kB / 295.1 MB, free: 4.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1768/0.1768, allocations: 44.83 MB / 391.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002579/0.0002579, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.0949, allocations: 62.96 MB / 0.5153 GB, free: 5.129 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2359/0.3309, allocations: 57.6 MB / 0.5716 GB, free: 9.508 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02363/0.3546, allocations: 12.18 MB / 0.5835 GB, free: 5.305 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01068/0.3653, allocations: 272.9 kB / 0.5837 GB, free: 5.262 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008172/0.3735, allocations: 2.872 MB / 0.5865 GB, free: 4.047 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0216/0.3951, allocations: 8.58 MB / 0.5949 GB, free: 14.21 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003774/0.3989, allocations: 0.9077 MB / 0.5958 GB, free: 13.64 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0391/0.438, allocations: 35.75 MB / 0.6307 GB, free: 12.78 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008835/0.4469, allocations: 4.954 MB / 0.6356 GB, free: 7.785 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003828/0.4507, allocations: 1.868 MB / 0.6374 GB, free: 5.91 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005852/0.4566, allocations: 3.089 MB / 0.6404 GB, free: 2.812 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001725/0.4584, allocations: 216 kB / 0.6406 GB, free: 2.602 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003198/0.4616, allocations: 0.9714 MB / 0.6415 GB, free: 1.629 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003356/0.465, allocations: 2.548 MB / 0.644 GB, free: 15.07 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002117/0.4671, allocations: 1.174 MB / 0.6452 GB, free: 13.89 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008473/0.4756, allocations: 7.595 MB / 0.6526 GB, free: 6.277 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4757, allocations: 4 kB / 0.6526 GB, free: 6.273 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4757, allocations: 0 / 0.6526 GB, free: 6.273 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003893/0.4761, allocations: 0 / 0.6526 GB, free: 6.273 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01408/0.4902, allocations: 6.066 MB / 0.6585 GB, free: 132 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.4902, allocations: 12.03 kB / 0.6585 GB, free: 120 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/0.5046, allocations: 3.938 MB / 0.6624 GB, free: 12.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008501/0.5131, allocations: 3.87 MB / 0.6662 GB, free: 8.234 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003322/0.5135, allocations: 316 kB / 0.6665 GB, free: 7.922 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001554/0.515, allocations: 431.6 kB / 0.6669 GB, free: 7.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02784/0.5429, allocations: 15.6 MB / 0.6821 GB, free: 7.168 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002814/0.5432, allocations: 59.5 kB / 0.6822 GB, free: 7.109 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001354/0.5446, allocations: 191.8 kB / 0.6823 GB, free: 6.922 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006142/0.5507, allocations: 3.384 MB / 0.6857 GB, free: 3.535 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02882/0.5796, allocations: 14.8 MB / 0.7001 GB, free: 4.715 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.297/0.8766, allocations: 55.21 MB / 0.754 GB, free: 168.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01883/0.8955, allocations: 8.187 MB / 0.762 GB, free: 167.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006551/0.9021, allocations: 4.828 MB / 0.7667 GB, free: 166.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001695/0.9038, allocations: 2.212 MB / 0.7689 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.134e-05/0.9039, allocations: 64.02 kB / 0.7689 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=367): time 7.554e-06/0.9039, allocations: 0 / 0.7689 GB, free: 164.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=419): time 0.09281/0.9967, allocations: 40.09 MB / 0.8081 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/0.9968, allocations: 121.9 kB / 0.8082 GB, free: 142.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004439/1.001, allocations: 4.26 MB / 0.8124 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007494/1.002, allocations: 90.7 kB / 0.8125 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001546/1.004, allocations: 3.786 MB / 0.8162 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001259/1.005, allocations: 1.494 MB / 0.8176 GB, free: 133 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003418/1.005, allocations: 157.3 kB / 0.8178 GB, free: 132.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002658/1.005, allocations: 0.6448 MB / 0.8184 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004414/1.01, allocations: 4.041 MB / 0.8223 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005826/1.016, allocations: 7.818 MB / 0.83 GB, free: 118.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006425/1.022, allocations: 5.592 MB / 0.8354 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.464e-05/1.022, allocations: 36 kB / 0.8355 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02249/1.045, allocations: 14.66 MB / 0.8498 GB, free: 98.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.028e-05/1.045, allocations: 60 kB / 0.8499 GB, free: 98.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/1.045, allocations: 132 kB / 0.85 GB, free: 98.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007266/1.052, allocations: 2.95 MB / 0.8529 GB, free: 95.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005942/1.058, allocations: 1.809 MB / 0.8546 GB, free: 93.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01603/1.074, allocations: 14.8 MB / 0.8691 GB, free: 78.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005722/1.08, allocations: 0.5046 MB / 0.8696 GB, free: 77.99 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001264/1.081, allocations: 429.1 kB / 0.87 GB, free: 77.57 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (942): * Single equations (assignments): 934 * Array equations: 6 * 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 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004828/1.086, allocations: 2.874 MB / 0.8728 GB, free: 74.69 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009221/1.087, allocations: 458.1 kB / 0.8732 GB, free: 74.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01589/1.103, allocations: 10.91 MB / 0.8839 GB, free: 63.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.502e-05/1.103, allocations: 63.75 kB / 0.8839 GB, free: 63.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.977e-05/1.103, allocations: 15.98 kB / 0.884 GB, free: 63.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-05/1.103, allocations: 15.94 kB / 0.884 GB, free: 63.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03192/1.135, allocations: 21.66 MB / 0.9051 GB, free: 41.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.198e-05/1.135, allocations: 12 kB / 0.9051 GB, free: 41.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003068/1.138, allocations: 0.6826 MB / 0.9058 GB, free: 40.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006926/1.145, allocations: 2.741 MB / 0.9085 GB, free: 37.85 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007315/1.146, allocations: 79.98 kB / 0.9086 GB, free: 37.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/1.161, allocations: 13.56 MB / 0.9218 GB, free: 23.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.706e-06/1.161, allocations: 16.56 kB / 0.9218 GB, free: 23.93 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01992/1.181, allocations: 15.52 MB / 0.937 GB, free: 8.133 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/1.182, allocations: 0.4913 MB / 0.9375 GB, free: 7.617 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007677/1.182, allocations: 83.94 kB / 0.9375 GB, free: 7.535 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002312/1.185, allocations: 313.9 kB / 0.9378 GB, free: 7.23 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005052/1.185, allocations: 273.4 kB / 0.9381 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/1.185, allocations: 108 kB / 0.9382 GB, free: 6.859 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002979/1.188, allocations: 2.645 MB / 0.9408 GB, free: 4.211 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.188, allocations: 4 kB / 0.9408 GB, free: 4.207 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005377/1.194, allocations: 1.676 MB / 0.9424 GB, free: 2.535 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * 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 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005484/1.194, allocations: 236.5 kB / 0.9426 GB, free: 2.297 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01358/1.208, allocations: 10.02 MB / 0.9524 GB, free: 8.266 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/1.208, allocations: 288 / 0.9524 GB, free: 8.266 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.1833/1.391, allocations: 4.349 MB / 0.9567 GB, free: 185.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003604/1.395, allocations: 0.6833 MB / 0.9573 GB, free: 185.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/1.419, allocations: 18.96 MB / 0.9759 GB, free: 176.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004185/1.424, allocations: 4.528 MB / 0.9803 GB, free: 175.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/1.425, allocations: 406.2 kB / 0.9807 GB, free: 175.2 MB / 0.5417 GB Notification: Performance of SimCode: time 8.52e-07/1.425, allocations: 3.938 kB / 0.9807 GB, free: 175.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.1321/1.558, allocations: 140.8 MB / 1.118 GB, free: 45.03 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches