Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001814/0.001814, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002208/0.002208, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2333/0.2333, allocations: 44.91 MB / 358.8 MB, free: 6.316 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 67.91 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3906, allocations: 65.48 MB / 0.557 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01879/0.4093, allocations: 15.04 MB / 0.5717 GB, free: 8.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.4196, allocations: 4.464 MB / 0.5761 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002574/0.4222, allocations: 87.69 kB / 0.5762 GB, free: 4.117 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004757/0.4269, allocations: 2.269 MB / 0.5784 GB, free: 1.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005314/0.4322, allocations: 2.051 MB / 0.5804 GB, free: 15.78 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.4338, allocations: 0.6122 MB / 0.581 GB, free: 15.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00691/0.4407, allocations: 4.307 MB / 0.5852 GB, free: 10.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00385/0.4445, allocations: 2.688 MB / 0.5878 GB, free: 8.113 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002665/0.4472, allocations: 1.62 MB / 0.5894 GB, free: 6.488 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003454/0.4506, allocations: 2.43 MB / 0.5918 GB, free: 4.051 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007978/0.4514, allocations: 340 kB / 0.5921 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002105/0.4535, allocations: 1.065 MB / 0.5931 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001897/0.4554, allocations: 2.01 MB / 0.5951 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002477/0.4579, allocations: 2.38 MB / 0.5974 GB, free: 14.24 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00856/0.4665, allocations: 7.769 MB / 0.605 GB, free: 6.441 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.4665, allocations: 0 / 0.605 GB, free: 6.441 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.4665, allocations: 7.922 kB / 0.605 GB, free: 6.434 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001944/0.4667, allocations: 4 kB / 0.605 GB, free: 6.43 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.009609/0.4763, allocations: 5.145 MB / 0.61 GB, free: 1.223 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.4763, allocations: 12.03 kB / 0.6101 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001201/0.4775, allocations: 0.8487 MB / 0.6109 GB, free: 360 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01047/0.488, allocations: 3.229 MB / 0.614 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008541/0.4965, allocations: 2.54 MB / 0.6165 GB, free: 10.53 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002697/0.4968, allocations: 251.8 kB / 0.6168 GB, free: 10.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001091/0.4979, allocations: 327.8 kB / 0.6171 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01966/0.5176, allocations: 12.24 MB / 0.629 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.5177, allocations: 31.7 kB / 0.629 GB, free: 13.17 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004684/0.5181, allocations: 159.8 kB / 0.6292 GB, free: 13.01 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004798/0.5229, allocations: 2.848 MB / 0.632 GB, free: 10.16 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02107/0.544, allocations: 11.13 MB / 0.6429 GB, free: 15.01 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06397/0.608, allocations: 40.42 MB / 0.6823 GB, free: 5.531 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009915/0.6179, allocations: 3.6 MB / 0.6858 GB, free: 1.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003916/0.6218, allocations: 2.252 MB / 0.688 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009959/0.6228, allocations: 459.9 kB / 0.6885 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/0.6229, allocations: 52.56 kB / 0.6885 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=249): time 5.019e-06/0.6229, allocations: 0 / 0.6885 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of matching and sorting (n=267): time 0.04718/0.67, allocations: 18.47 MB / 0.7066 GB, free: 12.61 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.6701, allocations: 73.41 kB / 0.7066 GB, free: 12.53 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004793/0.6749, allocations: 3.177 MB / 0.7097 GB, free: 9.34 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0004482/0.6754, allocations: 61.7 kB / 0.7098 GB, free: 9.273 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002521/0.6779, allocations: 3.249 MB / 0.713 GB, free: 5.996 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001243/0.6791, allocations: 1.015 MB / 0.714 GB, free: 4.973 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001649/0.6808, allocations: 1.188 MB / 0.7151 GB, free: 3.773 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.6809, allocations: 301.1 kB / 0.7154 GB, free: 3.477 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003619/0.6845, allocations: 2.459 MB / 0.7178 GB, free: 1.012 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006463/0.691, allocations: 5.719 MB / 0.7234 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3041/0.995, allocations: 8.968 MB / 0.7321 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001597/0.9952, allocations: 32.66 kB / 0.7322 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01554/1.011, allocations: 8.992 MB / 0.741 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/1.011, allocations: 56.5 kB / 0.741 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/1.011, allocations: 113.2 kB / 0.7411 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002643/1.014, allocations: 1.053 MB / 0.7421 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003748/1.017, allocations: 1.344 MB / 0.7435 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005756/1.023, allocations: 5.436 MB / 0.7488 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003482/1.027, allocations: 318.2 kB / 0.7491 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005391/1.027, allocations: 339.2 kB / 0.7494 GB, free: 147.3 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.00326/1.03, allocations: 2.416 MB / 0.7518 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004037/1.031, allocations: 334.1 kB / 0.7521 GB, free: 146.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007252/1.038, allocations: 5.346 MB / 0.7573 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.976e-05/1.038, allocations: 54.27 kB / 0.7573 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/1.038, allocations: 4 kB / 0.7574 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.002e-05/1.038, allocations: 11.06 kB / 0.7574 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01651/1.055, allocations: 12.99 MB / 0.77 GB, free: 130 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/1.055, allocations: 8 kB / 0.7701 GB, free: 130 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/1.056, allocations: 420.5 kB / 0.7705 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0023/1.058, allocations: 0.8913 MB / 0.7713 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001484/1.059, allocations: 55.98 kB / 0.7714 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004507/1.063, allocations: 4.74 MB / 0.776 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/1.063, allocations: 15.94 kB / 0.776 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009171/1.072, allocations: 8.024 MB / 0.7839 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007367/1.073, allocations: 305.8 kB / 0.7841 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003775/1.073, allocations: 51.73 kB / 0.7842 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/1.075, allocations: 151.8 kB / 0.7843 GB, free: 115.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002904/1.075, allocations: 174.3 kB / 0.7845 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/1.075, allocations: 84 kB / 0.7846 GB, free: 115 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00201/1.077, allocations: 1.958 MB / 0.7865 GB, free: 113 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.077, allocations: 7.828 kB / 0.7865 GB, free: 113 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003495/1.08, allocations: 1.058 MB / 0.7875 GB, free: 112 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.008637/1.089, allocations: 8.684 MB / 0.796 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00632/1.095, allocations: 5.778 MB / 0.8017 GB, free: 97.31 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/1.095, allocations: 0 / 0.8017 GB, free: 97.31 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002083/1.097, allocations: 2.101 MB / 0.8037 GB, free: 95.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/1.1, allocations: 458.3 kB / 0.8042 GB, free: 94.76 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04947/1.149, allocations: 47.16 MB / 0.8502 GB, free: 42.38 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003048/1.152, allocations: 3.704 MB / 0.8538 GB, free: 38.64 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003537/1.156, allocations: 2.153 MB / 0.8559 GB, free: 36.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001949/1.158, allocations: 2.1 MB / 0.858 GB, free: 34.38 MB / 0.5606 GB Notification: Performance of SimCode: time 1.072e-06/1.158, allocations: 0 / 0.858 GB, free: 34.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1452/1.303, allocations: 72.12 MB / 0.9284 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.77/29.07, allocations: 6.984 kB / 0.9284 GB, free: 10.65 MB / 0.6075 GB " [Timeout remaining time 631] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 32.75810834602453]