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.001314/0.001314, allocations: 111.1 kB / 20.44 MB, free: 1.051 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.001436/0.001436, allocations: 214.8 kB / 23.73 MB, free: 4.148 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.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2568/0.2568, allocations: 44.94 MB / 358.8 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 179] 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.00225/0.00225, allocations: 63.91 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3552, allocations: 65.47 MB / 0.557 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01763/0.3728, allocations: 13.02 MB / 0.5697 GB, free: 10.44 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01007/0.3829, allocations: 4.226 MB / 0.5738 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.3851, allocations: 91.62 kB / 0.5739 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004488/0.3896, allocations: 2.176 MB / 0.576 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00504/0.3946, allocations: 2.055 MB / 0.578 GB, free: 1.867 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.3962, allocations: 0.6161 MB / 0.5786 GB, free: 1.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005994/0.4022, allocations: 4.303 MB / 0.5828 GB, free: 12.94 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003798/0.406, allocations: 2.664 MB / 0.5854 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002777/0.4088, allocations: 1.627 MB / 0.587 GB, free: 8.586 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003606/0.4124, allocations: 2.305 MB / 0.5893 GB, free: 6.273 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008529/0.4132, allocations: 344 kB / 0.5896 GB, free: 5.938 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00201/0.4152, allocations: 0.9401 MB / 0.5905 GB, free: 4.996 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002057/0.4173, allocations: 2.006 MB / 0.5925 GB, free: 2.984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002059/0.4193, allocations: 1.719 MB / 0.5942 GB, free: 1.254 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009097/0.4284, allocations: 7.816 MB / 0.6018 GB, free: 9.406 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4284, allocations: 0 / 0.6018 GB, free: 9.406 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4284, allocations: 0 / 0.6018 GB, free: 9.406 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002097/0.4286, allocations: 0 / 0.6018 GB, free: 9.406 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.009759/0.4384, allocations: 5.141 MB / 0.6068 GB, free: 4.203 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.4385, allocations: 12.03 kB / 0.6068 GB, free: 4.191 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001294/0.4397, allocations: 0.8526 MB / 0.6077 GB, free: 3.328 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01098/0.4507, allocations: 3.234 MB / 0.6108 GB, free: 88 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006973/0.4577, allocations: 2.56 MB / 0.6133 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/0.4579, allocations: 246.4 kB / 0.6135 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/0.459, allocations: 335.7 kB / 0.6139 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02104/0.4801, allocations: 12.23 MB / 0.6258 GB, free: 156 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000119/0.4802, allocations: 35.7 kB / 0.6258 GB, free: 120 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004721/0.4807, allocations: 155.9 kB / 0.626 GB, free: 15.96 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005/0.4857, allocations: 2.847 MB / 0.6288 GB, free: 13.11 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02357/0.5092, allocations: 11.1 MB / 0.6396 GB, free: 2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06804/0.5773, allocations: 38.43 MB / 0.6771 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/0.5874, allocations: 3.588 MB / 0.6806 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004023/0.5915, allocations: 2.245 MB / 0.6828 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001103/0.5926, allocations: 453.2 kB / 0.6833 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.439e-05/0.5926, allocations: 64.5 kB / 0.6833 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 8.476e-06/0.5927, allocations: 0 / 0.6833 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.0512/0.6439, allocations: 18.51 MB / 0.7014 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.644, allocations: 73.41 kB / 0.7015 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007995/0.6519, allocations: 3.37 MB / 0.7048 GB, free: 14.14 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003454/0.6523, allocations: 69.62 kB / 0.7048 GB, free: 14.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003511/0.6558, allocations: 3.241 MB / 0.708 GB, free: 10.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00158/0.6574, allocations: 1.019 MB / 0.709 GB, free: 9.77 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00283/0.6602, allocations: 1.187 MB / 0.7102 GB, free: 8.57 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.6604, allocations: 309.1 kB / 0.7104 GB, free: 8.266 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004496/0.6649, allocations: 2.452 MB / 0.7128 GB, free: 5.809 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008013/0.6729, allocations: 5.723 MB / 0.7184 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/0.6859, allocations: 8.977 MB / 0.7272 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001216/0.686, allocations: 32 kB / 0.7272 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.3306/1.017, allocations: 8.985 MB / 0.736 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.409e-05/1.017, allocations: 58.72 kB / 0.7361 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001847/1.017, allocations: 113 kB / 0.7362 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002909/1.02, allocations: 1.052 MB / 0.7372 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004455/1.024, allocations: 1.35 MB / 0.7385 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006306/1.031, allocations: 5.394 MB / 0.7438 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004443/1.035, allocations: 317.5 kB / 0.7441 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009032/1.036, allocations: 337.4 kB / 0.7444 GB, free: 149.6 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.00406/1.04, allocations: 2.406 MB / 0.7468 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006402/1.041, allocations: 329.1 kB / 0.7471 GB, free: 148.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007918/1.048, allocations: 5.359 MB / 0.7523 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.265e-05/1.049, allocations: 47.28 kB / 0.7523 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/1.049, allocations: 4 kB / 0.7523 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.452e-05/1.049, allocations: 19.47 kB / 0.7524 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02257/1.071, allocations: 12.49 MB / 0.7646 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.593e-05/1.071, allocations: 13 kB / 0.7646 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/1.073, allocations: 426.9 kB / 0.765 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/1.076, allocations: 0.8863 MB / 0.7658 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002981/1.076, allocations: 55.34 kB / 0.7659 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005424/1.081, allocations: 4.691 MB / 0.7705 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.838e-06/1.081, allocations: 15.94 kB / 0.7705 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/1.093, allocations: 8.032 MB / 0.7783 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/1.094, allocations: 306.7 kB / 0.7786 GB, free: 119 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008142/1.095, allocations: 48 kB / 0.7787 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001863/1.096, allocations: 147.8 kB / 0.7788 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000379/1.097, allocations: 181.3 kB / 0.779 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/1.097, allocations: 79.66 kB / 0.7791 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003484/1.1, allocations: 1.961 MB / 0.781 GB, free: 116.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.1, allocations: 0 / 0.781 GB, free: 116.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005203/1.106, allocations: 1.063 MB / 0.782 GB, free: 115.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.0116/1.117, allocations: 8.694 MB / 0.7905 GB, free: 106.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008323/1.126, allocations: 5.768 MB / 0.7961 GB, free: 100.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.138e-05/1.126, allocations: 12.25 kB / 0.7962 GB, free: 100.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003037/1.129, allocations: 2.089 MB / 0.7982 GB, free: 98.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004175/1.133, allocations: 452.3 kB / 0.7986 GB, free: 98.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07297/1.206, allocations: 47.16 MB / 0.8447 GB, free: 45.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004412/1.21, allocations: 3.179 MB / 0.8478 GB, free: 42.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003906/1.214, allocations: 2.153 MB / 0.8499 GB, free: 40.61 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002313/1.216, allocations: 2.104 MB / 0.8519 GB, free: 38.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.242e-06/1.216, allocations: 4 kB / 0.8519 GB, free: 38.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1163/1.333, allocations: 67.08 MB / 0.9175 GB, free: 4.086 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.04/17.37, allocations: 13.84 kB / 0.9175 GB, free: 4.074 MB / 0.5919 GB " [Timeout remaining time 642] (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: 20.95630639605224]