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.001334/0.001334, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001495/0.001495, allocations: 207.6 kB / 23.73 MB, free: 4.379 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.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2395/0.2395, allocations: 46.96 MB / 360.9 MB, free: 4.129 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.002065/0.002065, allocations: 64.14 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3787, allocations: 66.03 MB / 0.5606 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01643/0.3951, allocations: 13.01 MB / 0.5733 GB, free: 7.133 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01042/0.4055, allocations: 4.238 MB / 0.5774 GB, free: 2.883 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00315/0.4087, allocations: 87.69 kB / 0.5775 GB, free: 2.797 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005212/0.4139, allocations: 2.176 MB / 0.5796 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006211/0.4201, allocations: 2.062 MB / 0.5817 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001911/0.422, allocations: 0.6122 MB / 0.5823 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006815/0.4288, allocations: 4.311 MB / 0.5865 GB, free: 9.613 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004628/0.4334, allocations: 2.676 MB / 0.5891 GB, free: 6.883 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003409/0.4369, allocations: 1.62 MB / 0.5907 GB, free: 5.258 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00414/0.441, allocations: 2.43 MB / 0.593 GB, free: 2.82 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001131/0.4421, allocations: 340 kB / 0.5934 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002393/0.4445, allocations: 0.944 MB / 0.5943 GB, free: 1.543 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002457/0.447, allocations: 2.01 MB / 0.5962 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003045/0.45, allocations: 1.731 MB / 0.5979 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01029/0.4603, allocations: 7.812 MB / 0.6056 GB, free: 5.941 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4603, allocations: 0 / 0.6056 GB, free: 5.941 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4603, allocations: 0 / 0.6056 GB, free: 5.941 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002232/0.4605, allocations: 0 / 0.6056 GB, free: 5.941 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.01142/0.472, allocations: 5.141 MB / 0.6106 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.472, allocations: 8.031 kB / 0.6106 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001652/0.4737, allocations: 0.8526 MB / 0.6114 GB, free: 15.87 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01096/0.4846, allocations: 3.234 MB / 0.6146 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007104/0.4917, allocations: 2.556 MB / 0.6171 GB, free: 10.03 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002641/0.492, allocations: 254.4 kB / 0.6173 GB, free: 9.777 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001296/0.4933, allocations: 327.8 kB / 0.6176 GB, free: 9.457 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02215/0.5154, allocations: 12.24 MB / 0.6296 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001269/0.5156, allocations: 35.7 kB / 0.6296 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006283/0.5162, allocations: 155.8 kB / 0.6298 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005002/0.5212, allocations: 2.844 MB / 0.6325 GB, free: 9.656 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02322/0.5444, allocations: 11.1 MB / 0.6434 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07006/0.6145, allocations: 38.44 MB / 0.6809 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009504/0.624, allocations: 3.592 MB / 0.6844 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00356/0.6275, allocations: 2.249 MB / 0.6866 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009522/0.6285, allocations: 453.2 kB / 0.6871 GB, free: 0.7852 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.248e-05/0.6285, allocations: 56.55 kB / 0.6871 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 5.881e-06/0.6285, allocations: 0 / 0.6871 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.04735/0.6759, allocations: 18.51 MB / 0.7052 GB, free: 14.14 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.676, allocations: 73.41 kB / 0.7053 GB, free: 14.05 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005099/0.6811, allocations: 3.37 MB / 0.7085 GB, free: 10.67 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004754/0.6815, allocations: 57.7 kB / 0.7086 GB, free: 10.61 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002703/0.6842, allocations: 3.245 MB / 0.7118 GB, free: 7.332 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001539/0.6858, allocations: 1.015 MB / 0.7128 GB, free: 6.309 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001881/0.6877, allocations: 1.188 MB / 0.7139 GB, free: 5.109 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.6878, allocations: 301.1 kB / 0.7142 GB, free: 4.812 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003834/0.6917, allocations: 2.459 MB / 0.7166 GB, free: 2.348 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006735/0.6984, allocations: 5.719 MB / 0.7222 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/0.7107, allocations: 8.977 MB / 0.731 GB, free: 460 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/0.7108, allocations: 32 kB / 0.731 GB, free: 428 kB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.3095/1.02, allocations: 8.987 MB / 0.7398 GB, free: 150 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.645e-05/1.02, allocations: 58.38 kB / 0.7398 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/1.021, allocations: 112.8 kB / 0.7399 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00264/1.023, allocations: 1.055 MB / 0.741 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003933/1.027, allocations: 1.347 MB / 0.7423 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005798/1.033, allocations: 5.385 MB / 0.7475 GB, free: 146.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004008/1.037, allocations: 320.3 kB / 0.7478 GB, free: 146.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008823/1.038, allocations: 343.5 kB / 0.7482 GB, free: 146.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.003518/1.041, allocations: 2.409 MB / 0.7505 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00051/1.042, allocations: 334.3 kB / 0.7508 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007352/1.049, allocations: 5.355 MB / 0.7561 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-05/1.049, allocations: 48.2 kB / 0.7561 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/1.049, allocations: 0 / 0.7561 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.216e-05/1.049, allocations: 13.89 kB / 0.7561 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01926/1.069, allocations: 12.5 MB / 0.7683 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-05/1.069, allocations: 12 kB / 0.7683 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/1.07, allocations: 422.7 kB / 0.7688 GB, free: 126.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002374/1.073, allocations: 0.8904 MB / 0.7696 GB, free: 126 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003185/1.073, allocations: 52 kB / 0.7697 GB, free: 125.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004748/1.078, allocations: 4.697 MB / 0.7743 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.078, allocations: 15.94 kB / 0.7743 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009475/1.087, allocations: 8.027 MB / 0.7821 GB, free: 113.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009087/1.088, allocations: 300.4 kB / 0.7824 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004636/1.089, allocations: 55.58 kB / 0.7825 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/1.09, allocations: 152 kB / 0.7826 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003324/1.09, allocations: 177.4 kB / 0.7828 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/1.09, allocations: 80 kB / 0.7828 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002263/1.093, allocations: 1.961 MB / 0.7848 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.093, allocations: 0 / 0.7848 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004355/1.097, allocations: 1.061 MB / 0.7858 GB, free: 109.4 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.009194/1.106, allocations: 8.695 MB / 0.7943 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006796/1.113, allocations: 5.775 MB / 0.7999 GB, free: 94.75 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/1.113, allocations: 4 kB / 0.7999 GB, free: 94.75 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002247/1.115, allocations: 2.095 MB / 0.802 GB, free: 92.64 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002148/1.117, allocations: 455.7 kB / 0.8024 GB, free: 92.21 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05337/1.171, allocations: 47.15 MB / 0.8485 GB, free: 39.85 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0034/1.174, allocations: 3.187 MB / 0.8516 GB, free: 36.63 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003767/1.178, allocations: 2.146 MB / 0.8537 GB, free: 34.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002573/1.18, allocations: 2.1 MB / 0.8557 GB, free: 32.38 MB / 0.5606 GB Notification: Performance of SimCode: time 1.182e-06/1.18, allocations: 0 / 0.8557 GB, free: 32.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1643/1.345, allocations: 69.73 MB / 0.9238 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.35/16.69, allocations: 3.984 kB / 0.9238 GB, free: 11.3 MB / 0.6075 GB " [Timeout remaining time 643] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 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.csv","/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] "Error: Could not read variable planar.w in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar_res.csv. Warning: Get data of variable planar.w from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Joints.Planar_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.831319944001734]