Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_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.001636/0.001636, allocations: 105.6 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.001755/0.001756, allocations: 193.4 kB / 16.9 MB, free: 6.188 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.551/1.551, allocations: 205.1 MB / 222.8 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3863/0.3863, allocations: 43.5 MB / 313.6 MB, free: 8.527 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.001799/0.001799, allocations: 67.91 kB / 382.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1429, allocations: 57.79 MB / 440.1 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3378/0.4807, allocations: 63.96 MB / 0.4923 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03426/0.515, allocations: 12.7 MB / 0.5046 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01819/0.5333, allocations: 274.2 kB / 0.5049 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008326/0.5416, allocations: 2.936 MB / 0.5078 GB, free: 52 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00881/0.5505, allocations: 2.445 MB / 0.5102 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003074/0.5536, allocations: 0.9675 MB / 0.5111 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01319/0.5668, allocations: 7.485 MB / 0.5184 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007981/0.5749, allocations: 4.438 MB / 0.5228 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006842/0.5818, allocations: 2.331 MB / 0.525 GB, free: 9.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006401/0.5882, allocations: 3.601 MB / 0.5285 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002599/0.5908, allocations: 459.9 kB / 0.529 GB, free: 6.168 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004785/0.5956, allocations: 1.323 MB / 0.5303 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004849/0.6005, allocations: 2.903 MB / 0.5331 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006232/0.6068, allocations: 3.332 MB / 0.5364 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.6187, allocations: 9.945 MB / 0.5461 GB, free: 4.605 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.6187, allocations: 3.938 kB / 0.5461 GB, free: 4.602 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6187, allocations: 0 / 0.5461 GB, free: 4.602 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003402/0.6191, allocations: 4 kB / 0.5461 GB, free: 4.598 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.01862/0.6377, allocations: 7.456 MB / 0.5534 GB, free: 13.06 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.083e-05/0.6378, allocations: 11.89 kB / 0.5534 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00206/0.6398, allocations: 1.034 MB / 0.5544 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02794/0.6678, allocations: 5.612 MB / 0.5599 GB, free: 6.371 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01125/0.6791, allocations: 5.855 MB / 0.5656 GB, free: 468 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002735/0.6794, allocations: 328.7 kB / 0.5659 GB, free: 136 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001802/0.6812, allocations: 443.5 kB / 0.5663 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03063/0.7118, allocations: 15.73 MB / 0.5817 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002347/0.7121, allocations: 59.44 kB / 0.5817 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008346/0.713, allocations: 199.8 kB / 0.5819 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006529/0.7195, allocations: 3.474 MB / 0.5853 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03106/0.7506, allocations: 14.8 MB / 0.5998 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3638/1.114, allocations: 55.94 MB / 0.6544 GB, free: 105.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01681/1.131, allocations: 8.145 MB / 0.6624 GB, free: 103.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006861/1.138, allocations: 4.771 MB / 0.667 GB, free: 102 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001978/1.14, allocations: 2.204 MB / 0.6692 GB, free: 99.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.073e-05/1.14, allocations: 67.31 kB / 0.6692 GB, free: 99.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 1.241e-05/1.14, allocations: 0 / 0.6692 GB, free: 99.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1093/1.25, allocations: 39.8 MB / 0.7081 GB, free: 88.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/1.25, allocations: 119.8 kB / 0.7082 GB, free: 88.55 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007277/1.257, allocations: 4.419 MB / 0.7125 GB, free: 86.97 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009698/1.258, allocations: 91.73 kB / 0.7126 GB, free: 86.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001953/1.26, allocations: 3.889 MB / 0.7164 GB, free: 83.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001626/1.262, allocations: 1.489 MB / 0.7179 GB, free: 82.25 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001988/1.264, allocations: 1.533 MB / 0.7194 GB, free: 81.42 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.015e-05/1.264, allocations: 305.1 kB / 0.7197 GB, free: 81.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004422/1.268, allocations: 3.962 MB / 0.7235 GB, free: 78.18 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006237/1.274, allocations: 7.755 MB / 0.7311 GB, free: 68.66 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01205/1.286, allocations: 12.73 MB / 0.7435 GB, free: 54.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/1.287, allocations: 36 kB / 0.7436 GB, free: 54.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.02226/1.309, allocations: 14.24 MB / 0.7575 GB, free: 39.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.819e-05/1.309, allocations: 60.97 kB / 0.7575 GB, free: 39.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/1.309, allocations: 133.4 kB / 0.7577 GB, free: 39.69 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006824/1.316, allocations: 2.69 MB / 0.7603 GB, free: 36.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00671/1.323, allocations: 1.782 MB / 0.762 GB, free: 35.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01657/1.339, allocations: 15.22 MB / 0.7769 GB, free: 19.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008293/1.348, allocations: 0.4995 MB / 0.7774 GB, free: 19.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/1.349, allocations: 427.9 kB / 0.7778 GB, free: 18.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (920): * Single equations (assignments): 912 * 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.004211/1.353, allocations: 2.91 MB / 0.7806 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007967/1.354, allocations: 473.6 kB / 0.7811 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/1.368, allocations: 10.57 MB / 0.7914 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.222e-05/1.368, allocations: 67.5 kB / 0.7915 GB, free: 4.727 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.361e-05/1.368, allocations: 8 kB / 0.7915 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.387e-05/1.368, allocations: 23.92 kB / 0.7915 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03691/1.405, allocations: 21.43 MB / 0.8124 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-05/1.405, allocations: 12 kB / 0.8124 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00301/1.408, allocations: 0.6786 MB / 0.8131 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006812/1.415, allocations: 2.491 MB / 0.8155 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003441/1.416, allocations: 80 kB / 0.8156 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2938/1.709, allocations: 13.83 MB / 0.8291 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/1.71, allocations: 21.09 kB / 0.8291 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02461/1.734, allocations: 15.11 MB / 0.8439 GB, free: 153.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003293/1.737, allocations: 1.171 MB / 0.845 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001286/1.739, allocations: 75.81 kB / 0.8451 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003331/1.742, allocations: 308.5 kB / 0.8454 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008592/1.743, allocations: 256.3 kB / 0.8457 GB, free: 152.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/1.743, allocations: 116.3 kB / 0.8458 GB, free: 152.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004418/1.748, allocations: 2.777 MB / 0.8485 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.41e-07/1.748, allocations: 6.125 kB / 0.8485 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008704/1.756, allocations: 1.649 MB / 0.8501 GB, free: 151.6 MB / 0.5137 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.02989/1.786, allocations: 15.83 MB / 0.8656 GB, free: 145.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0331/1.82, allocations: 19.75 MB / 0.8848 GB, free: 139.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.037e-05/1.82, allocations: 4 kB / 0.8848 GB, free: 139.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007004/1.827, allocations: 4.31 MB / 0.8891 GB, free: 135.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004948/1.832, allocations: 0.7274 MB / 0.8898 GB, free: 135 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1315/1.963, allocations: 84.25 MB / 0.972 GB, free: 47.19 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008252/1.971, allocations: 4.616 MB / 0.9765 GB, free: 42.53 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007836/1.979, allocations: 2.744 MB / 0.9792 GB, free: 39.78 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005437/1.985, allocations: 2.909 MB / 0.9821 GB, free: 36.87 MB / 0.5137 GB Notification: Performance of SimCode: time 1.303e-06/1.985, allocations: 4 kB / 0.9821 GB, free: 36.86 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4598/2.444, allocations: 118 MB / 1.097 GB, free: 117.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/2.445, allocations: 219.8 kB / 1.098 GB, free: 116.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.972/7.417, allocations: 0 / 1.098 GB, free: 116.9 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches