Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.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.001797/0.001797, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002159/0.002159, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.2387/0.2387, allocations: 46.93 MB / 360.9 MB, free: 4.309 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.Planar,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 63.91 kB / 0.4962 GB, free: 7.938 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3452, allocations: 66.03 MB / 0.5607 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.02035/0.3656, allocations: 15.05 MB / 0.5753 GB, free: 5.387 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.3767, allocations: 4.464 MB / 0.5797 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002945/0.3796, allocations: 95.62 kB / 0.5798 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00627/0.3859, allocations: 2.258 MB / 0.582 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007148/0.393, allocations: 2.043 MB / 0.584 GB, free: 12.5 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.3948, allocations: 0.6238 MB / 0.5846 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006546/0.4014, allocations: 4.307 MB / 0.5888 GB, free: 7.559 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0044/0.4058, allocations: 2.676 MB / 0.5914 GB, free: 4.828 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003048/0.4088, allocations: 1.62 MB / 0.593 GB, free: 3.203 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004197/0.413, allocations: 2.426 MB / 0.5954 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001331/0.4143, allocations: 344 kB / 0.5957 GB, free: 444 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00276/0.4171, allocations: 1.069 MB / 0.5967 GB, free: 15.36 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002977/0.4201, allocations: 2.01 MB / 0.5987 GB, free: 13.35 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004197/0.4243, allocations: 2.38 MB / 0.601 GB, free: 10.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.4364, allocations: 7.78 MB / 0.6086 GB, free: 3.141 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.4365, allocations: 0 / 0.6086 GB, free: 3.141 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4365, allocations: 3.938 kB / 0.6086 GB, free: 3.137 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000359/0.4368, allocations: 0 / 0.6086 GB, free: 3.137 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01436/0.4512, allocations: 5.141 MB / 0.6137 GB, free: 13.93 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.4512, allocations: 8.031 kB / 0.6137 GB, free: 13.92 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002154/0.4534, allocations: 0.8526 MB / 0.6145 GB, free: 13.06 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01156/0.4649, allocations: 3.23 MB / 0.6177 GB, free: 9.82 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006405/0.4714, allocations: 2.544 MB / 0.6201 GB, free: 7.238 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002989/0.4717, allocations: 258.4 kB / 0.6204 GB, free: 6.984 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001439/0.4731, allocations: 331.7 kB / 0.6207 GB, free: 6.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02592/0.499, allocations: 12.23 MB / 0.6326 GB, free: 9.902 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/0.4992, allocations: 39.7 kB / 0.6327 GB, free: 9.863 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001165/0.5004, allocations: 151.8 kB / 0.6328 GB, free: 9.715 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005521/0.5059, allocations: 2.84 MB / 0.6356 GB, free: 6.871 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02555/0.5314, allocations: 11.13 MB / 0.6465 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06956/0.601, allocations: 40.41 MB / 0.6859 GB, free: 2.25 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009385/0.6104, allocations: 3.606 MB / 0.6895 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003593/0.614, allocations: 2.248 MB / 0.6917 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009724/0.615, allocations: 457 kB / 0.6921 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/0.615, allocations: 56.56 kB / 0.6921 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=249): time 5.18e-06/0.615, allocations: 0 / 0.6921 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=267): time 0.04682/0.6618, allocations: 18.47 MB / 0.7102 GB, free: 9.336 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/0.6619, allocations: 77.41 kB / 0.7102 GB, free: 9.246 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006557/0.6685, allocations: 3.177 MB / 0.7133 GB, free: 6.059 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004944/0.669, allocations: 61.69 kB / 0.7134 GB, free: 5.992 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003083/0.672, allocations: 3.249 MB / 0.7166 GB, free: 2.715 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001529/0.6736, allocations: 1.008 MB / 0.7176 GB, free: 1.699 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002746/0.6763, allocations: 1.191 MB / 0.7187 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.6765, allocations: 305.1 kB / 0.719 GB, free: 200 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004887/0.6814, allocations: 2.456 MB / 0.7214 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008969/0.6903, allocations: 5.719 MB / 0.727 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3147/1.005, allocations: 8.968 MB / 0.7358 GB, free: 147 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.739e-05/1.005, allocations: 32.28 kB / 0.7358 GB, free: 147 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01409/1.019, allocations: 9 MB / 0.7446 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.192e-05/1.019, allocations: 53.34 kB / 0.7446 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001273/1.019, allocations: 113 kB / 0.7447 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00287/1.022, allocations: 1.051 MB / 0.7458 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/1.026, allocations: 1.348 MB / 0.7471 GB, free: 144 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005783/1.032, allocations: 5.432 MB / 0.7524 GB, free: 141.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/1.036, allocations: 316.2 kB / 0.7527 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006217/1.036, allocations: 339.3 kB / 0.753 GB, free: 141.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.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 (725): * Single equations (assignments): 718 * 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 {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003185/1.039, allocations: 2.417 MB / 0.7554 GB, free: 140.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000502/1.04, allocations: 330.8 kB / 0.7557 GB, free: 140 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0076/1.048, allocations: 5.354 MB / 0.7609 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.339e-05/1.048, allocations: 46.67 kB / 0.761 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.048, allocations: 5.312 kB / 0.761 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/1.048, allocations: 9.375 kB / 0.761 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0194/1.067, allocations: 12.99 MB / 0.7737 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.995e-05/1.067, allocations: 12 kB / 0.7737 GB, free: 122.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/1.069, allocations: 427.5 kB / 0.7741 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002364/1.071, allocations: 0.8858 MB / 0.7749 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/1.071, allocations: 55.12 kB / 0.775 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004762/1.076, allocations: 4.742 MB / 0.7796 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.004e-06/1.076, allocations: 15.94 kB / 0.7796 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008874/1.085, allocations: 8.033 MB / 0.7875 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006826/1.086, allocations: 301.8 kB / 0.7878 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004037/1.086, allocations: 56 kB / 0.7878 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001299/1.087, allocations: 151.8 kB / 0.788 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002998/1.088, allocations: 173.4 kB / 0.7881 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/1.088, allocations: 75.98 kB / 0.7882 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002126/1.09, allocations: 1.961 MB / 0.7901 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/1.09, allocations: 0 / 0.7901 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003704/1.094, allocations: 1.065 MB / 0.7912 GB, free: 104.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (208): * Single equations (assignments): 201 * 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 {(3,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.008859/1.103, allocations: 8.693 MB / 0.7997 GB, free: 95.62 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006853/1.109, allocations: 5.769 MB / 0.8053 GB, free: 89.86 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.109, allocations: 0 / 0.8053 GB, free: 89.86 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002383/1.112, allocations: 2.102 MB / 0.8073 GB, free: 87.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002438/1.114, allocations: 465.2 kB / 0.8078 GB, free: 87.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0555/1.17, allocations: 47.15 MB / 0.8538 GB, free: 34.94 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003442/1.173, allocations: 3.708 MB / 0.8574 GB, free: 31.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003854/1.177, allocations: 2.153 MB / 0.8596 GB, free: 29.04 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002298/1.179, allocations: 2.1 MB / 0.8616 GB, free: 26.93 MB / 0.5606 GB Notification: Performance of SimCode: time 9.22e-07/1.179, allocations: 0 / 0.8616 GB, free: 26.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1277/1.307, allocations: 72.12 MB / 0.932 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.48/29.79, allocations: 9.078 kB / 0.932 GB, free: 3.203 MB / 0.6075 GB " [Timeout remaining time 630] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar.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: 33.379011122044176]