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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001157, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.211/0.211, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 76 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1346, allocations: 62.44 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01668/0.1513, allocations: 14.95 MB / 495.1 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.1616, allocations: 4.415 MB / 499.5 MB, free: 1.715 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002927/0.1646, allocations: 79.81 kB / 499.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00477/0.1695, allocations: 2.219 MB / 0.49 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005588/0.1751, allocations: 1.984 MB / 0.492 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002134/0.1772, allocations: 0.6122 MB / 0.4926 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006063/0.1833, allocations: 4.303 MB / 0.4968 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004806/0.1882, allocations: 3.162 MB / 0.4999 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003441/0.1916, allocations: 1.565 MB / 0.5014 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003923/0.1956, allocations: 2.219 MB / 0.5036 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001309/0.1969, allocations: 344 kB / 0.5039 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00343/0.2003, allocations: 1.026 MB / 0.5049 GB, free: 124 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2356/0.436, allocations: 1.958 MB / 0.5068 GB, free: 16.39 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00359/0.4396, allocations: 2.385 MB / 0.5091 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.4501, allocations: 7.425 MB / 0.5164 GB, free: 14.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4502, allocations: 0 / 0.5164 GB, free: 14.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.4502, allocations: 0.5625 kB / 0.5164 GB, free: 14.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003902/0.4506, allocations: 6.688 kB / 0.5164 GB, free: 14.61 MB / 382.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.01524/0.4658, allocations: 5.067 MB / 0.5213 GB, free: 12.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.4659, allocations: 10.47 kB / 0.5213 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002074/0.468, allocations: 0.8496 MB / 0.5222 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/0.4792, allocations: 3.201 MB / 0.5253 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006128/0.4854, allocations: 2.565 MB / 0.5278 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.4856, allocations: 249.1 kB / 0.528 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/0.4868, allocations: 335 kB / 0.5284 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01874/0.5055, allocations: 12.24 MB / 0.5403 GB, free: 4.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.5057, allocations: 32.41 kB / 0.5403 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005267/0.5062, allocations: 152.8 kB / 0.5405 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003938/0.5102, allocations: 2.843 MB / 0.5433 GB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02207/0.5323, allocations: 11.13 MB / 0.5541 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06628/0.5986, allocations: 40.7 MB / 0.5939 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009903/0.6085, allocations: 4.708 MB / 0.5985 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003474/0.612, allocations: 2.427 MB / 0.6008 GB, free: 7.887 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001255/0.6133, allocations: 1.324 MB / 0.6021 GB, free: 6.352 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.6134, allocations: 52.56 kB / 0.6022 GB, free: 6.293 MB / 446.1 MB Notification: Performance of pre-optimization done (n=249): time 5.03e-06/0.6134, allocations: 0 / 0.6022 GB, free: 6.293 MB / 446.1 MB Notification: Performance of matching and sorting (n=267): time 0.04768/0.6611, allocations: 18.69 MB / 0.6204 GB, free: 3.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.6612, allocations: 77.41 kB / 0.6205 GB, free: 3.414 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006461/0.6677, allocations: 3.172 MB / 0.6236 GB, free: 236 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005344/0.6682, allocations: 61.7 kB / 0.6237 GB, free: 168 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002597/0.6708, allocations: 3.11 MB / 0.6267 GB, free: 13.05 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00169/0.6725, allocations: 0.9696 MB / 0.6276 GB, free: 12.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003293/0.6759, allocations: 1.186 MB / 0.6288 GB, free: 10.89 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.676, allocations: 305.1 kB / 0.6291 GB, free: 10.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004448/0.6805, allocations: 2.456 MB / 0.6315 GB, free: 8.133 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006991/0.6875, allocations: 5.722 MB / 0.6371 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01273/0.7002, allocations: 8.974 MB / 0.6458 GB, free: 6.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001271/0.7004, allocations: 40 kB / 0.6459 GB, free: 6.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.02061/0.721, allocations: 8.975 MB / 0.6546 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001801/0.7212, allocations: 52 kB / 0.6547 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002399/0.7215, allocations: 116 kB / 0.6548 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003358/0.7249, allocations: 1.055 MB / 0.6558 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005507/0.7304, allocations: 1.341 MB / 0.6571 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008038/0.7385, allocations: 5.541 MB / 0.6626 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005024/0.7435, allocations: 323.8 kB / 0.6629 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001671/0.7452, allocations: 346 kB / 0.6632 GB, free: 5.383 MB / 0.4981 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.006401/0.7516, allocations: 2.404 MB / 0.6655 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008981/0.7525, allocations: 308 kB / 0.6658 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/0.7635, allocations: 5.37 MB / 0.6711 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.296e-05/0.7637, allocations: 54.33 kB / 0.6711 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.7637, allocations: 0 / 0.6711 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.084e-05/0.7637, allocations: 11.97 kB / 0.6711 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0298/0.7935, allocations: 13.07 MB / 0.6839 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.329e-05/0.7936, allocations: 12 kB / 0.6839 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002232/0.7959, allocations: 423.3 kB / 0.6843 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003026/0.7989, allocations: 0.8866 MB / 0.6852 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006252/0.7996, allocations: 58.25 kB / 0.6853 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00713/0.8067, allocations: 4.83 MB / 0.69 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-05/0.8068, allocations: 19.88 kB / 0.69 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01575/0.8225, allocations: 8.016 MB / 0.6978 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/0.8241, allocations: 365 kB / 0.6982 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001514/0.8256, allocations: 58.59 kB / 0.6982 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002541/0.8282, allocations: 143.8 kB / 0.6984 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007876/0.829, allocations: 169.5 kB / 0.6985 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004139/0.8294, allocations: 82.22 kB / 0.6986 GB, free: 500 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004903/0.8343, allocations: 1.967 MB / 0.7005 GB, free: 14.53 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.7e-07/0.8344, allocations: 0 / 0.7005 GB, free: 14.53 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007491/0.8419, allocations: 1.061 MB / 0.7016 GB, free: 13.47 MB / 0.545 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.01607/0.858, allocations: 8.68 MB / 0.71 GB, free: 4.562 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2414/1.099, allocations: 9.633 MB / 0.7194 GB, free: 203.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.099, allocations: 1.719 kB / 0.7194 GB, free: 203.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003639/1.103, allocations: 2.258 MB / 0.7216 GB, free: 203 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002725/1.106, allocations: 465.6 kB / 0.7221 GB, free: 202.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06696/1.173, allocations: 51.23 MB / 0.7721 GB, free: 157.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003499/1.176, allocations: 3.7 MB / 0.7757 GB, free: 153.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004536/1.181, allocations: 2.15 MB / 0.7778 GB, free: 151.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00263/1.184, allocations: 2.104 MB / 0.7799 GB, free: 149.6 MB / 0.545 GB Notification: Performance of SimCode: time 7.11e-07/1.184, allocations: 4 kB / 0.7799 GB, free: 149.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09594/1.28, allocations: 69.87 MB / 0.8481 GB, free: 79.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/12.37, allocations: 4 kB / 0.8481 GB, free: 79.93 MB / 0.545 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.csv","/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_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches