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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 112.8 kB / 18.5 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002138/0.002138, allocations: 193.2 kB / 21.44 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.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.2326/0.2326, allocations: 44.91 MB / 349.6 MB, free: 1.727 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 69.73 kB / 491.8 MB, free: 29.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1283, allocations: 64.25 MB / 0.543 GB, free: 4.105 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01718/0.1455, allocations: 15.07 MB / 0.5577 GB, free: 4.953 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008778/0.1542, allocations: 4.431 MB / 0.5621 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001589/0.1558, allocations: 79.81 kB / 0.5621 GB, free: 440 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004303/0.1601, allocations: 2.269 MB / 0.5643 GB, free: 14.15 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004686/0.1648, allocations: 2.063 MB / 0.5664 GB, free: 12.08 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.1662, allocations: 0.616 MB / 0.567 GB, free: 11.46 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005345/0.1716, allocations: 4.272 MB / 0.5711 GB, free: 7.184 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003427/0.175, allocations: 2.728 MB / 0.5738 GB, free: 4.402 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002448/0.1774, allocations: 1.608 MB / 0.5754 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003281/0.1807, allocations: 2.434 MB / 0.5777 GB, free: 356 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007917/0.1815, allocations: 340 kB / 0.5781 GB, free: 16 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.1836, allocations: 1.081 MB / 0.5791 GB, free: 14.93 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001983/0.1856, allocations: 2.041 MB / 0.5811 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002708/0.1883, allocations: 2.399 MB / 0.5835 GB, free: 10.47 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008862/0.1971, allocations: 7.842 MB / 0.5911 GB, free: 2.598 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.1971, allocations: 8 kB / 0.5911 GB, free: 2.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1971, allocations: 0 / 0.5911 GB, free: 2.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001643/0.1973, allocations: 3.938 kB / 0.5911 GB, free: 2.586 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.01015/0.2075, allocations: 5.239 MB / 0.5962 GB, free: 13.27 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.2075, allocations: 8.031 kB / 0.5963 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001379/0.2089, allocations: 0.8487 MB / 0.5971 GB, free: 12.4 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01075/0.2196, allocations: 3.234 MB / 0.6002 GB, free: 9.156 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006512/0.2261, allocations: 2.71 MB / 0.6029 GB, free: 6.395 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.2264, allocations: 262.4 kB / 0.6031 GB, free: 6.137 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008329/0.2272, allocations: 327.8 kB / 0.6035 GB, free: 5.816 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2818/0.509, allocations: 12.23 MB / 0.6154 GB, free: 51.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.5091, allocations: 35.64 kB / 0.6154 GB, free: 51.54 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000407/0.5095, allocations: 154.7 kB / 0.6156 GB, free: 51.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00477/0.5143, allocations: 2.846 MB / 0.6184 GB, free: 50.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02202/0.5363, allocations: 11.13 MB / 0.6292 GB, free: 47.57 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04937/0.5857, allocations: 40.59 MB / 0.6689 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007407/0.5931, allocations: 4.505 MB / 0.6733 GB, free: 6.668 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002401/0.5955, allocations: 2.248 MB / 0.6755 GB, free: 4.418 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000831/0.5963, allocations: 1.322 MB / 0.6768 GB, free: 2.883 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.5963, allocations: 60.55 kB / 0.6768 GB, free: 2.816 MB / 462.1 MB Notification: Performance of pre-optimization done (n=249): time 4.248e-06/0.5963, allocations: 0 / 0.6768 GB, free: 2.816 MB / 462.1 MB Notification: Performance of matching and sorting (n=267): time 0.04238/0.6387, allocations: 18.76 MB / 0.6951 GB, free: 172 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.6388, allocations: 73.41 kB / 0.6952 GB, free: 88 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004667/0.6434, allocations: 3.19 MB / 0.6983 GB, free: 12.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003766/0.6438, allocations: 61.7 kB / 0.6984 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002662/0.6465, allocations: 3.248 MB / 0.7016 GB, free: 9.676 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001354/0.6478, allocations: 1.015 MB / 0.7025 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001711/0.6495, allocations: 1.184 MB / 0.7037 GB, free: 7.457 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.6497, allocations: 305.1 kB / 0.704 GB, free: 7.156 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/0.6536, allocations: 2.462 MB / 0.7064 GB, free: 4.691 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007363/0.661, allocations: 5.715 MB / 0.712 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/0.674, allocations: 8.973 MB / 0.7207 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000107/0.6741, allocations: 32 kB / 0.7208 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.0186/0.6927, allocations: 8.986 MB / 0.7295 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001/0.6928, allocations: 59.98 kB / 0.7296 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001657/0.693, allocations: 114.6 kB / 0.7297 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003195/0.6962, allocations: 1.055 MB / 0.7307 GB, free: 8.539 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004801/0.701, allocations: 1.341 MB / 0.732 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008087/0.7091, allocations: 5.545 MB / 0.7375 GB, free: 1.516 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004217/0.7133, allocations: 319.8 kB / 0.7378 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/0.7144, allocations: 340 kB / 0.7381 GB, free: 0.8711 MB / 0.5137 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.004796/0.7192, allocations: 2.413 MB / 0.7405 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006772/0.7199, allocations: 325.8 kB / 0.7408 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009685/0.7295, allocations: 5.356 MB / 0.746 GB, free: 8.703 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.51e-05/0.7296, allocations: 43.98 kB / 0.746 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.7296, allocations: 4 kB / 0.746 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.32e-05/0.7296, allocations: 12.05 kB / 0.746 GB, free: 8.645 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02469/0.7543, allocations: 13.03 MB / 0.7588 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-05/0.7544, allocations: 20.86 kB / 0.7588 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.7561, allocations: 423.5 kB / 0.7592 GB, free: 10.94 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002697/0.7588, allocations: 0.8863 MB / 0.7601 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001875/0.759, allocations: 55.98 kB / 0.7601 GB, free: 9.992 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006883/0.7659, allocations: 4.839 MB / 0.7648 GB, free: 5.016 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.739e-05/0.7659, allocations: 27.02 kB / 0.7649 GB, free: 4.992 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01273/0.7786, allocations: 8.018 MB / 0.7727 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.7797, allocations: 378.9 kB / 0.7731 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003987/0.7801, allocations: 55.98 kB / 0.7731 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.7813, allocations: 151.8 kB / 0.7733 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003741/0.7817, allocations: 165.6 kB / 0.7734 GB, free: 12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000172/0.7819, allocations: 79.98 kB / 0.7735 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002998/0.7849, allocations: 1.961 MB / 0.7754 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7849, allocations: 0 / 0.7754 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004533/0.7894, allocations: 1.086 MB / 0.7765 GB, free: 8.879 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.01373/0.8031, allocations: 8.69 MB / 0.785 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009854/0.813, allocations: 5.777 MB / 0.7906 GB, free: 10.19 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.485e-05/0.813, allocations: 4 kB / 0.7906 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003453/0.8165, allocations: 2.11 MB / 0.7927 GB, free: 8.066 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002749/0.8192, allocations: 464.8 kB / 0.7931 GB, free: 7.621 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08609/0.9053, allocations: 47.04 MB / 0.839 GB, free: 3.328 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3111/1.216, allocations: 3.704 MB / 0.8427 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006669/1.223, allocations: 2.156 MB / 0.8448 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003652/1.227, allocations: 2.106 MB / 0.8468 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of SimCode: time 1.322e-06/1.227, allocations: 0 / 0.8468 GB, free: 213.9 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.114/1.341, allocations: 67.21 MB / 0.9124 GB, free: 168.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.05/27.39, allocations: 12.14 kB / 0.9125 GB, free: 168.3 MB / 0.6231 GB " [Timeout remaining time 632] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 31.16358698485419]