Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 110.9 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.001361, allocations: 189.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2414/0.2414, allocations: 43.53 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 71.91 kB / 441.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1261, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.02008/0.1463, allocations: 15.73 MB / 0.5028 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.157, allocations: 4.505 MB / 0.5072 GB, free: 7.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002646/0.1597, allocations: 79.88 kB / 0.5073 GB, free: 7.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005226/0.165, allocations: 2.25 MB / 0.5095 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005705/0.1707, allocations: 2.066 MB / 0.5115 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001832/0.1726, allocations: 0.6199 MB / 0.5121 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00782/0.1804, allocations: 4.463 MB / 0.5164 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00662/0.1871, allocations: 3.22 MB / 0.5196 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004342/0.1915, allocations: 1.651 MB / 0.5212 GB, free: 9.547 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005409/0.197, allocations: 2.278 MB / 0.5234 GB, free: 7.262 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001749/0.1988, allocations: 352 kB / 0.5237 GB, free: 6.918 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004515/0.2034, allocations: 1.045 MB / 0.5248 GB, free: 5.871 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004168/0.2076, allocations: 2.061 MB / 0.5268 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006457/0.2141, allocations: 2.493 MB / 0.5292 GB, free: 1.297 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2857/0.4998, allocations: 8.083 MB / 0.5371 GB, free: 10.15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.4999, allocations: 0 / 0.5371 GB, free: 10.15 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4999, allocations: 1.375 kB / 0.5371 GB, free: 10.15 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002906/0.5002, allocations: 3.094 kB / 0.5371 GB, free: 10.15 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.01479/0.515, allocations: 5.429 MB / 0.5424 GB, free: 7.879 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.515, allocations: 14.48 kB / 0.5424 GB, free: 7.875 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002626/0.5177, allocations: 0.8902 MB / 0.5433 GB, free: 7.789 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0118/0.5295, allocations: 3.237 MB / 0.5465 GB, free: 7.422 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006615/0.5361, allocations: 2.896 MB / 0.5493 GB, free: 6.816 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.5364, allocations: 264.1 kB / 0.5495 GB, free: 6.809 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001771/0.5382, allocations: 348.8 kB / 0.5499 GB, free: 6.801 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02321/0.5614, allocations: 12.65 MB / 0.5622 GB, free: 3.145 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001781/0.5617, allocations: 40.08 kB / 0.5623 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001178/0.5628, allocations: 159.1 kB / 0.5624 GB, free: 3.074 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004754/0.5676, allocations: 3.035 MB / 0.5654 GB, free: 1.902 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02355/0.5912, allocations: 11.33 MB / 0.5764 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07055/0.6618, allocations: 42.19 MB / 0.6176 GB, free: 36 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/0.6722, allocations: 4.708 MB / 0.6222 GB, free: 11.1 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004/0.6763, allocations: 2.436 MB / 0.6246 GB, free: 8.656 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00147/0.6778, allocations: 1.314 MB / 0.6259 GB, free: 7.133 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.363e-05/0.6779, allocations: 56.56 kB / 0.626 GB, free: 7.066 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 8.276e-06/0.6779, allocations: 0 / 0.626 GB, free: 7.066 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05892/0.7368, allocations: 19.7 MB / 0.6452 GB, free: 3.277 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.737, allocations: 106.1 kB / 0.6453 GB, free: 3.156 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007068/0.744, allocations: 3.289 MB / 0.6485 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005512/0.7446, allocations: 64.75 kB / 0.6486 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0031/0.7477, allocations: 3.409 MB / 0.6519 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001758/0.7495, allocations: 1.03 MB / 0.6529 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002987/0.7525, allocations: 1.214 MB / 0.6541 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.7527, allocations: 301.1 kB / 0.6544 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004843/0.7575, allocations: 2.491 MB / 0.6568 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008689/0.7662, allocations: 5.878 MB / 0.6625 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01409/0.7804, allocations: 9.185 MB / 0.6715 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001641/0.7806, allocations: 36 kB / 0.6715 GB, free: 5.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=809) (initialization): time 0.02193/0.8025, allocations: 9.171 MB / 0.6805 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000207/0.8028, allocations: 56 kB / 0.6806 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002753/0.8031, allocations: 120.1 kB / 0.6807 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003814/0.8069, allocations: 1.054 MB / 0.6817 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005818/0.8128, allocations: 1.396 MB / 0.6831 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009275/0.8221, allocations: 5.546 MB / 0.6885 GB, free: 4.512 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005081/0.8272, allocations: 330.4 kB / 0.6888 GB, free: 4.191 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/0.8288, allocations: 352 kB / 0.6891 GB, free: 3.848 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (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 (747): * Single equations (assignments): 740 * 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.007869/0.8367, allocations: 2.485 MB / 0.6916 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/0.838, allocations: 341.8 kB / 0.6919 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/0.8524, allocations: 5.375 MB / 0.6971 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000114/0.8525, allocations: 47.66 kB / 0.6972 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.614e-05/0.8526, allocations: 8 kB / 0.6972 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.067e-05/0.8526, allocations: 11.95 kB / 0.6972 GB, free: 11.52 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03339/0.886, allocations: 13.33 MB / 0.7102 GB, free: 14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-05/0.8861, allocations: 11.69 kB / 0.7102 GB, free: 14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002239/0.8884, allocations: 435.3 kB / 0.7106 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003215/0.8916, allocations: 0.8893 MB / 0.7115 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005473/0.8922, allocations: 58.27 kB / 0.7116 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007944/0.9002, allocations: 4.836 MB / 0.7163 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.403e-05/0.9002, allocations: 19.88 kB / 0.7163 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01692/0.9172, allocations: 8.05 MB / 0.7242 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002711/0.9199, allocations: 0.7525 MB / 0.7249 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001309/0.9213, allocations: 54.89 kB / 0.725 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/0.9237, allocations: 151.8 kB / 0.7251 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007922/0.9246, allocations: 165.6 kB / 0.7253 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004241/0.925, allocations: 78.58 kB / 0.7253 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005174/0.9302, allocations: 2.026 MB / 0.7273 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9302, allocations: 0 / 0.7273 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007585/0.9378, allocations: 1.109 MB / 0.7284 GB, free: 11.04 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (209): * Single equations (assignments): 202 * 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.01833/0.9562, allocations: 8.728 MB / 0.7369 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01369/0.97, allocations: 6.111 MB / 0.7429 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.278e-05/0.9701, allocations: 4 kB / 0.7429 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004983/0.975, allocations: 2.254 MB / 0.7451 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004835/0.9799, allocations: 449.5 kB / 0.7455 GB, free: 9.289 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3618/1.342, allocations: 48.39 MB / 0.7928 GB, free: 193 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008345/1.35, allocations: 3.827 MB / 0.7965 GB, free: 190.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005581/1.356, allocations: 2.184 MB / 0.7986 GB, free: 189.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003947/1.36, allocations: 2.202 MB / 0.8008 GB, free: 187.3 MB / 0.5919 GB Notification: Performance of SimCode: time 1.372e-06/1.36, allocations: 0 / 0.8008 GB, free: 187.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1137/1.473, allocations: 67.61 MB / 0.8668 GB, free: 119.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.03/28.5, allocations: 23.56 kB / 0.8668 GB, free: 119.7 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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.00044 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches