Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.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 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 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) 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 104.1 kB / 17.21 MB, free: 6.27 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.001891/0.001891, allocations: 190 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 222.9 MB / 241.8 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2285/0.2285, allocations: 44.17 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 64.39 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.123, allocations: 60.83 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3213/0.4444, allocations: 63.54 MB / 0.5197 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03156/0.476, allocations: 12.75 MB / 0.5321 GB, free: 6.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01473/0.4907, allocations: 274.7 kB / 0.5324 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005563/0.4963, allocations: 3.012 MB / 0.5354 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005983/0.5024, allocations: 2.429 MB / 0.5377 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.5044, allocations: 0.9426 MB / 0.5386 GB, free: 3.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.5146, allocations: 10.16 MB / 0.5486 GB, free: 15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005907/0.5205, allocations: 4.055 MB / 0.5525 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004479/0.525, allocations: 1.984 MB / 0.5545 GB, free: 9.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005605/0.5306, allocations: 3.421 MB / 0.5578 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002278/0.533, allocations: 316 kB / 0.5581 GB, free: 5.938 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004334/0.5373, allocations: 1.241 MB / 0.5593 GB, free: 4.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004786/0.5421, allocations: 2.728 MB / 0.562 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0077/0.5498, allocations: 3.108 MB / 0.565 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01349/0.5634, allocations: 9.618 MB / 0.5744 GB, free: 5.523 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.5634, allocations: 0 / 0.5744 GB, free: 5.523 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.5634, allocations: 7.938 kB / 0.5744 GB, free: 5.516 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000348/0.5638, allocations: 0 / 0.5744 GB, free: 5.516 MB / 414.1 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.01874/0.5825, allocations: 7.322 MB / 0.5816 GB, free: 14.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.5826, allocations: 11.97 kB / 0.5816 GB, free: 14.25 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002416/0.585, allocations: 1.018 MB / 0.5826 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02723/0.6123, allocations: 5.609 MB / 0.5881 GB, free: 7.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009924/0.6222, allocations: 5.239 MB / 0.5932 GB, free: 2.449 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003537/0.6226, allocations: 319.5 kB / 0.5935 GB, free: 2.188 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001955/0.6246, allocations: 444.7 kB / 0.5939 GB, free: 1.809 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03157/0.6561, allocations: 15.52 MB / 0.609 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003032/0.6565, allocations: 63.42 kB / 0.6091 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/0.6582, allocations: 199.4 kB / 0.6093 GB, free: 1.527 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006674/0.6649, allocations: 3.374 MB / 0.6126 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03147/0.6964, allocations: 14.69 MB / 0.6269 GB, free: 15.46 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08773/0.7842, allocations: 55.08 MB / 0.6807 GB, free: 7.523 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/0.8037, allocations: 8.148 MB / 0.6887 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007321/0.811, allocations: 4.765 MB / 0.6933 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002221/0.8133, allocations: 2.22 MB / 0.6955 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.732e-05/0.8134, allocations: 61.08 kB / 0.6956 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 8.807e-06/0.8134, allocations: 4 kB / 0.6956 GB, free: 7.719 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.3407/1.154, allocations: 39.55 MB / 0.7342 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/1.154, allocations: 118.6 kB / 0.7343 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005005/1.159, allocations: 4.316 MB / 0.7385 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008354/1.16, allocations: 89.53 kB / 0.7386 GB, free: 177.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001703/1.162, allocations: 3.815 MB / 0.7423 GB, free: 174 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001516/1.163, allocations: 1.491 MB / 0.7438 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001756/1.165, allocations: 1.52 MB / 0.7453 GB, free: 171 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.991e-05/1.165, allocations: 304.1 kB / 0.7456 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00422/1.169, allocations: 3.942 MB / 0.7494 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005396/1.175, allocations: 7.703 MB / 0.7569 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0115/1.186, allocations: 12.64 MB / 0.7693 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.664e-05/1.186, allocations: 40 kB / 0.7693 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02255/1.209, allocations: 14.17 MB / 0.7832 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.507e-05/1.209, allocations: 63.94 kB / 0.7832 GB, free: 128.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/1.209, allocations: 128 kB / 0.7833 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006649/1.216, allocations: 2.672 MB / 0.786 GB, free: 125.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005803/1.222, allocations: 1.766 MB / 0.7877 GB, free: 124 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0158/1.237, allocations: 14.15 MB / 0.8015 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006871/1.244, allocations: 497.9 kB / 0.802 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/1.246, allocations: 427.9 kB / 0.8024 GB, free: 108.7 MB / 0.5294 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 (911): * Single equations (assignments): 903 * Array equations: 6 * 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 {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004797/1.251, allocations: 2.866 MB / 0.8052 GB, free: 105.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009656/1.252, allocations: 462 kB / 0.8056 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01564/1.267, allocations: 10.56 MB / 0.8159 GB, free: 94.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.707e-05/1.267, allocations: 59.98 kB / 0.816 GB, free: 94.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-05/1.267, allocations: 16 kB / 0.816 GB, free: 94.68 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.358e-05/1.267, allocations: 19.88 kB / 0.816 GB, free: 94.66 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03088/1.298, allocations: 21.34 MB / 0.8369 GB, free: 73.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/1.298, allocations: 12 kB / 0.8369 GB, free: 73.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002804/1.301, allocations: 0.6786 MB / 0.8375 GB, free: 72.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006387/1.308, allocations: 2.493 MB / 0.84 GB, free: 69.91 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000629/1.308, allocations: 79.92 kB / 0.84 GB, free: 69.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01389/1.322, allocations: 12.9 MB / 0.8526 GB, free: 56.67 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/1.322, allocations: 15.94 kB / 0.8527 GB, free: 56.65 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02102/1.343, allocations: 15.1 MB / 0.8674 GB, free: 41.28 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/1.344, allocations: 0.4951 MB / 0.8679 GB, free: 40.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008341/1.345, allocations: 79.98 kB / 0.868 GB, free: 40.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002217/1.347, allocations: 303 kB / 0.8683 GB, free: 40.39 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006524/1.348, allocations: 266 kB / 0.8685 GB, free: 40.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/1.348, allocations: 108 kB / 0.8686 GB, free: 40.02 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00283/1.351, allocations: 2.714 MB / 0.8713 GB, free: 37.31 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/1.351, allocations: 0 / 0.8713 GB, free: 37.31 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004682/1.356, allocations: 1.646 MB / 0.8729 GB, free: 35.67 MB / 0.5294 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 (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 {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01788/1.374, allocations: 15.82 MB / 0.8883 GB, free: 19.58 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.1915/1.565, allocations: 9.796 MB / 0.8979 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/1.565, allocations: 2.312 kB / 0.8979 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00599/1.571, allocations: 4.308 MB / 0.9021 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003871/1.575, allocations: 0.6896 MB / 0.9028 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09642/1.672, allocations: 82.79 MB / 0.9836 GB, free: 108.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004653/1.676, allocations: 4.543 MB / 0.988 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005656/1.682, allocations: 2.724 MB / 0.9907 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003604/1.686, allocations: 2.827 MB / 0.9935 GB, free: 98.77 MB / 0.5294 GB Notification: Performance of SimCode: time 6.91e-07/1.686, allocations: 0 / 0.9935 GB, free: 98.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.302/3.988, allocations: 114.3 MB / 1.105 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002075/3.988, allocations: 212.5 kB / 1.105 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.71/8.698, allocations: 0 / 1.105 GB, free: 164.8 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches