Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001935/0.001935, allocations: 118.8 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002218/0.002218, allocations: 212.7 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.586/1.586, allocations: 230.5 MB / 254.7 MB, free: 15.19 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2312/0.2312, allocations: 46.91 MB / 357.7 MB, free: 10.22 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002341/0.002341, allocations: 81.97 kB / 0.4917 GB, free: 26.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1146, allocations: 66.03 MB / 0.5562 GB, free: 8.699 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.0181/0.1327, allocations: 15.01 MB / 0.5708 GB, free: 9.613 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009388/0.1421, allocations: 4.456 MB / 0.5752 GB, free: 5.141 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001946/0.1441, allocations: 95.62 kB / 0.5753 GB, free: 5.047 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004617/0.1487, allocations: 2.25 MB / 0.5774 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004862/0.1536, allocations: 2.035 MB / 0.5794 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.155, allocations: 0.6122 MB / 0.58 GB, free: 136 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006026/0.161, allocations: 4.312 MB / 0.5842 GB, free: 11.82 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003533/0.1646, allocations: 2.721 MB / 0.5869 GB, free: 9.047 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003144/0.1677, allocations: 1.616 MB / 0.5885 GB, free: 7.426 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003951/0.1717, allocations: 2.422 MB / 0.5908 GB, free: 4.996 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008467/0.1725, allocations: 344 kB / 0.5912 GB, free: 4.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002369/0.1749, allocations: 1.061 MB / 0.5922 GB, free: 3.598 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00205/0.1769, allocations: 2.017 MB / 0.5942 GB, free: 1.574 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002693/0.1796, allocations: 2.376 MB / 0.5965 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009383/0.189, allocations: 7.78 MB / 0.6041 GB, free: 7.371 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.189, allocations: 0 / 0.6041 GB, free: 7.371 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.189, allocations: 4 kB / 0.6041 GB, free: 7.367 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002315/0.1893, allocations: 0 / 0.6041 GB, free: 7.367 MB / 462.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.0104/0.1997, allocations: 5.208 MB / 0.6092 GB, free: 2.078 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1997, allocations: 16.03 kB / 0.6092 GB, free: 2.062 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001482/0.1999, allocations: 114.6 kB / 0.6093 GB, free: 1.949 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001306/0.2012, allocations: 0.8526 MB / 0.6101 GB, free: 1.086 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2648/0.4659, allocations: 3.226 MB / 0.6133 GB, free: 46.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005264/0.4712, allocations: 2.604 MB / 0.6158 GB, free: 45.77 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.4714, allocations: 249.3 kB / 0.6161 GB, free: 45.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000851/0.4722, allocations: 333.3 kB / 0.6164 GB, free: 45.63 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01847/0.4907, allocations: 12.24 MB / 0.6283 GB, free: 40.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.4908, allocations: 41.5 kB / 0.6284 GB, free: 40.64 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004466/0.4912, allocations: 156.2 kB / 0.6285 GB, free: 40.58 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004319/0.4955, allocations: 2.845 MB / 0.6313 GB, free: 39.76 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01837/0.5139, allocations: 11.13 MB / 0.6422 GB, free: 32.61 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04698/0.5609, allocations: 40.6 MB / 0.6818 GB, free: 7.324 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00972/0.5706, allocations: 4.504 MB / 0.6862 GB, free: 2.586 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003386/0.574, allocations: 2.248 MB / 0.6884 GB, free: 352 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001376/0.5754, allocations: 1.319 MB / 0.6897 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.5754, allocations: 52.56 kB / 0.6898 GB, free: 14.74 MB / 494.1 MB Notification: Performance of pre-optimization done (n=249): time 4.558e-06/0.5754, allocations: 0 / 0.6898 GB, free: 14.74 MB / 494.1 MB Notification: Performance of matching and sorting (n=267): time 0.04588/0.6213, allocations: 18.76 MB / 0.7081 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.533e-05/0.6214, allocations: 73.41 kB / 0.7081 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004593/0.626, allocations: 3.185 MB / 0.7113 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003107/0.6263, allocations: 69.69 kB / 0.7113 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002554/0.6289, allocations: 3.237 MB / 0.7145 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001188/0.63, allocations: 1.015 MB / 0.7155 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.6318, allocations: 1.191 MB / 0.7166 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.6319, allocations: 301.1 kB / 0.7169 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00382/0.6358, allocations: 2.456 MB / 0.7193 GB, free: 336 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006774/0.6425, allocations: 5.726 MB / 0.7249 GB, free: 8.992 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/0.6543, allocations: 8.976 MB / 0.7337 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.091e-05/0.6544, allocations: 32 kB / 0.7337 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01712/0.6715, allocations: 8.979 MB / 0.7425 GB, free: 5.406 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/0.6716, allocations: 56.12 kB / 0.7425 GB, free: 5.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/0.6717, allocations: 116 kB / 0.7426 GB, free: 5.238 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003299/0.675, allocations: 1.051 MB / 0.7437 GB, free: 4.184 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004508/0.6795, allocations: 1.349 MB / 0.745 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008049/0.6876, allocations: 5.547 MB / 0.7504 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003634/0.6912, allocations: 315.8 kB / 0.7507 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005673/0.6918, allocations: 344 kB / 0.751 GB, free: 12.51 MB / 0.545 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.003883/0.6957, allocations: 2.413 MB / 0.7534 GB, free: 10.08 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005438/0.6962, allocations: 325.8 kB / 0.7537 GB, free: 9.762 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009905/0.7061, allocations: 5.36 MB / 0.7589 GB, free: 4.34 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.471e-05/0.7062, allocations: 48 kB / 0.759 GB, free: 4.293 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.7062, allocations: 11.92 kB / 0.759 GB, free: 4.281 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/0.7062, allocations: 7.969 kB / 0.759 GB, free: 4.273 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02295/0.7291, allocations: 13.02 MB / 0.7717 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-05/0.7292, allocations: 12 kB / 0.7717 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/0.731, allocations: 419.3 kB / 0.7721 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002988/0.734, allocations: 0.8905 MB / 0.773 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001882/0.7342, allocations: 59.97 kB / 0.7731 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006989/0.7412, allocations: 4.838 MB / 0.7778 GB, free: 0.6562 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.269e-05/0.7412, allocations: 16.05 kB / 0.7778 GB, free: 0.6406 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/0.754, allocations: 8.03 MB / 0.7856 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008346/0.7549, allocations: 378.9 kB / 0.786 GB, free: 8.004 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000396/0.7553, allocations: 52 kB / 0.786 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.7566, allocations: 151.7 kB / 0.7862 GB, free: 7.805 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000395/0.757, allocations: 169.5 kB / 0.7864 GB, free: 7.637 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/0.7571, allocations: 72 kB / 0.7864 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002945/0.7601, allocations: 1.965 MB / 0.7883 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.7601, allocations: 0 / 0.7883 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004243/0.7643, allocations: 1.066 MB / 0.7894 GB, free: 4.539 MB / 0.5762 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.01462/0.779, allocations: 8.685 MB / 0.7979 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009518/0.7885, allocations: 5.785 MB / 0.8035 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.7885, allocations: 0 / 0.8035 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003251/0.7917, allocations: 2.093 MB / 0.8056 GB, free: 3.746 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/0.7941, allocations: 453.3 kB / 0.806 GB, free: 3.309 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3427/1.137, allocations: 47.02 MB / 0.8519 GB, free: 220.8 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005264/1.142, allocations: 3.702 MB / 0.8555 GB, free: 220 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.006044/1.148, allocations: 2.153 MB / 0.8576 GB, free: 220 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003783/1.152, allocations: 2.105 MB / 0.8597 GB, free: 219.5 MB / 0.6387 GB Notification: Performance of SimCode: time 3.927e-06/1.152, allocations: 0 / 0.8597 GB, free: 219.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.115/1.267, allocations: 67.13 MB / 0.9252 GB, free: 171.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.92/29.18, allocations: 11.97 kB / 0.9253 GB, free: 171.8 MB / 0.6387 GB " [Timeout remaining time 631] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.458231061988045]