Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002425/0.002425, allocations: 201.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.441/1.441, allocations: 230.6 MB / 258.3 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2304/0.2304, allocations: 46.93 MB / 361.6 MB, free: 4.273 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Revolute",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Revolute",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 67.89 kB / 0.4969 GB, free: 7.902 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3064, allocations: 66.05 MB / 0.5614 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01414/0.3205, allocations: 12.35 MB / 0.5735 GB, free: 8.047 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007962/0.3285, allocations: 3.976 MB / 0.5774 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001537/0.33, allocations: 67.75 kB / 0.5774 GB, free: 3.992 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002869/0.3329, allocations: 1.358 MB / 0.5788 GB, free: 2.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004443/0.3373, allocations: 1.775 MB / 0.5805 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001309/0.3386, allocations: 495 kB / 0.581 GB, free: 372 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005292/0.3439, allocations: 3.606 MB / 0.5845 GB, free: 12.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002565/0.3465, allocations: 1.834 MB / 0.5863 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002031/0.3485, allocations: 1.214 MB / 0.5875 GB, free: 9.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003093/0.3516, allocations: 1.88 MB / 0.5893 GB, free: 7.773 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006979/0.3523, allocations: 236 kB / 0.5895 GB, free: 7.543 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001989/0.3543, allocations: 0.9751 MB / 0.5905 GB, free: 6.566 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001679/0.356, allocations: 1.62 MB / 0.5921 GB, free: 4.941 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.3581, allocations: 1.875 MB / 0.5939 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007241/0.3654, allocations: 6.212 MB / 0.6 GB, free: 12.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3654, allocations: 0 / 0.6 GB, free: 12.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3654, allocations: 0 / 0.6 GB, free: 12.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001171/0.3655, allocations: 3.938 kB / 0.6 GB, free: 12.81 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.007793/0.3733, allocations: 4.178 MB / 0.604 GB, free: 8.578 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.3733, allocations: 8.031 kB / 0.6041 GB, free: 8.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001044/0.3734, allocations: 93.03 kB / 0.6041 GB, free: 8.477 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001046/0.3745, allocations: 0.7083 MB / 0.6048 GB, free: 7.758 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/0.3858, allocations: 3.11 MB / 0.6079 GB, free: 4.641 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004437/0.3903, allocations: 2.035 MB / 0.6099 GB, free: 2.574 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.3904, allocations: 192.8 kB / 0.61 GB, free: 2.383 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006833/0.3911, allocations: 247.8 kB / 0.6103 GB, free: 2.141 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01739/0.4085, allocations: 10.49 MB / 0.6205 GB, free: 7.215 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.623e-05/0.4086, allocations: 27.75 kB / 0.6205 GB, free: 7.188 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004922/0.4091, allocations: 115.8 kB / 0.6207 GB, free: 7.074 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004671/0.4138, allocations: 2.553 MB / 0.6232 GB, free: 4.52 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01956/0.4333, allocations: 9.919 MB / 0.6328 GB, free: 10.59 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05194/0.4853, allocations: 34.2 MB / 0.6662 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009906/0.4952, allocations: 4.06 MB / 0.6702 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003462/0.4986, allocations: 2.108 MB / 0.6723 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001362/0.5, allocations: 0.5673 MB / 0.6728 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.5, allocations: 52.5 kB / 0.6729 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 5.46e-06/0.5001, allocations: 4 kB / 0.6729 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of matching and sorting (n=235): time 0.03609/0.5361, allocations: 13.89 MB / 0.6864 GB, free: 2.832 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/0.5362, allocations: 73.41 kB / 0.6865 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004109/0.5403, allocations: 2.644 MB / 0.6891 GB, free: 84 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003314/0.5407, allocations: 53.7 kB / 0.6891 GB, free: 24 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002136/0.5428, allocations: 2.745 MB / 0.6918 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001177/0.544, allocations: 0.8874 MB / 0.6927 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001987/0.546, allocations: 1.045 MB / 0.6937 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5461, allocations: 301.1 kB / 0.694 GB, free: 11 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003567/0.5496, allocations: 2.2 MB / 0.6961 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006332/0.556, allocations: 5.059 MB / 0.7011 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.5668, allocations: 7.953 MB / 0.7088 GB, free: 8.969 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.372e-05/0.5669, allocations: 32 kB / 0.7089 GB, free: 8.938 MB / 0.545 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.0151/0.582, allocations: 7.869 MB / 0.7166 GB, free: 1.059 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.5821, allocations: 48 kB / 0.7166 GB, free: 1.012 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/0.5823, allocations: 104.8 kB / 0.7167 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002428/0.5847, allocations: 0.7927 MB / 0.7175 GB, free: 116 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004121/0.5888, allocations: 1.181 MB / 0.7186 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006466/0.5953, allocations: 4.427 MB / 0.723 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003551/0.5989, allocations: 295.8 kB / 0.7232 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009444/0.5998, allocations: 300 kB / 0.7235 GB, free: 9.812 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (631): * Single equations (assignments): 624 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004062/0.6039, allocations: 2.012 MB / 0.7255 GB, free: 7.785 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006299/0.6045, allocations: 274.1 kB / 0.7258 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009015/0.6135, allocations: 4.714 MB / 0.7304 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.56e-05/0.6136, allocations: 43.94 kB / 0.7304 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.6136, allocations: 4 kB / 0.7304 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-05/0.6136, allocations: 11.95 kB / 0.7304 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2529/0.8665, allocations: 10.47 MB / 0.7406 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/0.8666, allocations: 10.3 kB / 0.7406 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.8681, allocations: 360.1 kB / 0.741 GB, free: 153.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.87, allocations: 0.6636 MB / 0.7416 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002321/0.8702, allocations: 39.59 kB / 0.7417 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003894/0.8741, allocations: 3.805 MB / 0.7454 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.8741, allocations: 16.33 kB / 0.7454 GB, free: 151.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008557/0.8826, allocations: 7.134 MB / 0.7524 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005338/0.8832, allocations: 258.4 kB / 0.7526 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004466/0.8836, allocations: 39.67 kB / 0.7527 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.8848, allocations: 140.3 kB / 0.7528 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/0.8851, allocations: 137.6 kB / 0.7529 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.8853, allocations: 67.84 kB / 0.753 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001865/0.8871, allocations: 1.62 MB / 0.7546 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.8871, allocations: 0 / 0.7546 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003426/0.8906, allocations: 0.9051 MB / 0.7555 GB, free: 145 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008576/0.8991, allocations: 7.795 MB / 0.7631 GB, free: 137.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005758/0.9049, allocations: 5.141 MB / 0.7681 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.9049, allocations: 0 / 0.7681 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001939/0.9069, allocations: 1.885 MB / 0.7699 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.9086, allocations: 360 kB / 0.7703 GB, free: 130 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04504/0.9537, allocations: 39.77 MB / 0.8091 GB, free: 86.01 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003388/0.9571, allocations: 3.175 MB / 0.8122 GB, free: 82.81 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003493/0.9605, allocations: 1.957 MB / 0.8141 GB, free: 80.85 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002011/0.9626, allocations: 1.706 MB / 0.8158 GB, free: 79.14 MB / 0.5606 GB Notification: Performance of SimCode: time 1.022e-06/0.9626, allocations: 2.078 kB / 0.8158 GB, free: 79.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08598/1.049, allocations: 59.21 MB / 0.8736 GB, free: 20.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.32/26.37, allocations: 3.562 kB / 0.8736 GB, free: 20.31 MB / 0.5606 GB " [Timeout remaining time 633] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Revolute.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: 29.95989760296652]