Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001795/0.001795, allocations: 116.5 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002299/0.002299, allocations: 214.2 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 230.5 MB / 257.4 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2573/0.2573, allocations: 46.92 MB / 360.8 MB, free: 4.195 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002625/0.002625, allocations: 79.88 kB / 0.4962 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3435, allocations: 66.08 MB / 0.5607 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02245/0.3659, allocations: 18.25 MB / 0.5786 GB, free: 1.957 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01339/0.3793, allocations: 5.335 MB / 0.5838 GB, free: 12.61 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003479/0.3828, allocations: 123.4 kB / 0.5839 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007033/0.3898, allocations: 3.11 MB / 0.5869 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007603/0.3974, allocations: 2.618 MB / 0.5895 GB, free: 6.738 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002958/0.4004, allocations: 1.03 MB / 0.5905 GB, free: 5.707 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01213/0.4125, allocations: 7.668 MB / 0.598 GB, free: 14.02 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006399/0.4189, allocations: 3.61 MB / 0.6015 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0043/0.4232, allocations: 2.289 MB / 0.6037 GB, free: 8.066 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006335/0.4296, allocations: 3.52 MB / 0.6072 GB, free: 4.535 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0017/0.4313, allocations: 452 kB / 0.6076 GB, free: 4.094 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003625/0.4349, allocations: 1.338 MB / 0.6089 GB, free: 2.754 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004134/0.439, allocations: 2.878 MB / 0.6117 GB, free: 15.87 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006028/0.4451, allocations: 3.219 MB / 0.6149 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.4591, allocations: 10.08 MB / 0.6247 GB, free: 2.508 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.4591, allocations: 0 / 0.6247 GB, free: 2.508 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4591, allocations: 0 / 0.6247 GB, free: 2.508 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004922/0.4596, allocations: 0 / 0.6247 GB, free: 2.508 MB / 462.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.02431/0.4839, allocations: 7.442 MB / 0.632 GB, free: 10.99 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.484, allocations: 8.031 kB / 0.632 GB, free: 10.98 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002922/0.4869, allocations: 1.01 MB / 0.633 GB, free: 9.961 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02931/0.5162, allocations: 5.648 MB / 0.6385 GB, free: 4.301 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.5277, allocations: 4.799 MB / 0.6432 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003407/0.528, allocations: 316.4 kB / 0.6435 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001615/0.5296, allocations: 443.6 kB / 0.6439 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03011/0.5597, allocations: 15.52 MB / 0.6591 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002242/0.56, allocations: 67.47 kB / 0.6591 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001025/0.561, allocations: 203.7 kB / 0.6593 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006778/0.5678, allocations: 3.38 MB / 0.6626 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03298/0.6007, allocations: 14.69 MB / 0.677 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1016/0.7024, allocations: 54.7 MB / 0.7304 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3013/1.004, allocations: 6.894 MB / 0.7371 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006971/1.011, allocations: 4.415 MB / 0.7414 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001509/1.012, allocations: 0.66 MB / 0.7421 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.853e-05/1.012, allocations: 72.8 kB / 0.7421 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 7.965e-06/1.012, allocations: 0 / 0.7421 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.0894/1.102, allocations: 39.35 MB / 0.7806 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.888e-05/1.102, allocations: 123.7 kB / 0.7807 GB, free: 122.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005049/1.107, allocations: 4.318 MB / 0.7849 GB, free: 118 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001034/1.108, allocations: 81.7 kB / 0.785 GB, free: 117.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002069/1.11, allocations: 3.965 MB / 0.7889 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001949/1.112, allocations: 1.559 MB / 0.7904 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002181/1.114, allocations: 1.529 MB / 0.7919 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.929e-05/1.114, allocations: 305.1 kB / 0.7922 GB, free: 111 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004903/1.119, allocations: 3.942 MB / 0.796 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007191/1.126, allocations: 7.691 MB / 0.8035 GB, free: 97.64 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01319/1.139, allocations: 12.65 MB / 0.8159 GB, free: 83.16 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001114/1.139, allocations: 39.09 kB / 0.8159 GB, free: 83.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02363/1.163, allocations: 14.17 MB / 0.8298 GB, free: 68.91 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.641e-05/1.163, allocations: 56 kB / 0.8298 GB, free: 68.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/1.163, allocations: 128 kB / 0.8299 GB, free: 68.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006842/1.17, allocations: 2.678 MB / 0.8325 GB, free: 66.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006065/1.176, allocations: 1.762 MB / 0.8343 GB, free: 64.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/1.192, allocations: 15.02 MB / 0.8489 GB, free: 49.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00598/1.198, allocations: 495.6 kB / 0.8494 GB, free: 48.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001027/1.199, allocations: 423.1 kB / 0.8498 GB, free: 48.14 MB / 0.5606 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.004866/1.204, allocations: 2.873 MB / 0.8526 GB, free: 45.26 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001085/1.205, allocations: 488.8 kB / 0.8531 GB, free: 44.78 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0159/1.221, allocations: 10.53 MB / 0.8634 GB, free: 34.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.449e-05/1.221, allocations: 63.94 kB / 0.8634 GB, free: 34.13 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/1.221, allocations: 11.98 kB / 0.8634 GB, free: 34.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.309e-05/1.221, allocations: 15.94 kB / 0.8635 GB, free: 34.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03563/1.257, allocations: 21.17 MB / 0.8841 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.505e-05/1.257, allocations: 12 kB / 0.8841 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003277/1.26, allocations: 0.6786 MB / 0.8848 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006617/1.267, allocations: 2.476 MB / 0.8872 GB, free: 9.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000868/1.268, allocations: 87.92 kB / 0.8873 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0172/1.285, allocations: 13.63 MB / 0.9006 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.174e-05/1.285, allocations: 19.88 kB / 0.9006 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02862/1.314, allocations: 15.1 MB / 0.9154 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.315, allocations: 444.7 kB / 0.9158 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/1.316, allocations: 79.98 kB / 0.9159 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002696/1.319, allocations: 307.5 kB / 0.9162 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007881/1.32, allocations: 277 kB / 0.9164 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000325/1.32, allocations: 112 kB / 0.9165 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004713/1.325, allocations: 2.706 MB / 0.9192 GB, free: 8.332 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/1.325, allocations: 0 / 0.9192 GB, free: 8.332 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007893/1.333, allocations: 1.617 MB / 0.9208 GB, free: 6.715 MB / 0.5919 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.0278/1.36, allocations: 15.81 MB / 0.9362 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01894/1.379, allocations: 9.431 MB / 0.9454 GB, free: 13.19 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/1.379, allocations: 4 kB / 0.9454 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.007623/1.387, allocations: 4.02 MB / 0.9493 GB, free: 9.137 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00431/1.391, allocations: 0.7293 MB / 0.9501 GB, free: 8.414 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3873/1.779, allocations: 70.28 MB / 1.019 GB, free: 212.3 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004471/1.783, allocations: 4.538 MB / 1.023 GB, free: 207.8 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.005329/1.788, allocations: 2.721 MB / 1.026 GB, free: 205.1 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003239/1.792, allocations: 2.823 MB / 1.029 GB, free: 202.2 MB / 0.6544 GB Notification: Performance of SimCode: time 1.383e-06/1.792, allocations: 0 / 1.029 GB, free: 202.2 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1763/1.968, allocations: 120.4 MB / 1.146 GB, free: 82.36 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.86/25.83, allocations: 7.781 kB / 1.146 GB, free: 82.35 MB / 0.6544 GB " [Timeout remaining time 634] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 30.026102307951078]