Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.001346/0.001346, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.00151/0.00151, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.448/1.448, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 48.06 kB / 370.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2973, allocations: 52.18 MB / 422.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02172/0.319, allocations: 18.3 MB / 440.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.3329, allocations: 6.092 MB / 447 MB, free: 6.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004079/0.337, allocations: 171.1 kB / 447.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01231/0.3493, allocations: 6.367 MB / 453.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008448/0.3577, allocations: 2.934 MB / 456.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00542/0.3632, allocations: 2.311 MB / 458.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01576/0.3789, allocations: 9.513 MB / 468.3 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01013/0.3891, allocations: 6.232 MB / 474.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006801/0.3959, allocations: 3.264 MB / 477.8 MB, free: 7.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008006/0.4039, allocations: 4.475 MB / 482.3 MB, free: 2.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002775/0.4066, allocations: 0.7148 MB / 483 MB, free: 2.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005454/0.4121, allocations: 1.959 MB / 485 MB, free: 124 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006101/0.4182, allocations: 3.931 MB / 488.9 MB, free: 12.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008112/0.4263, allocations: 4.423 MB / 493.3 MB, free: 7.734 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02062/0.4469, allocations: 13.93 MB / 0.4954 GB, free: 9.754 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.142e-05/0.4469, allocations: 7.984 kB / 0.4954 GB, free: 9.746 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4469, allocations: 0 / 0.4954 GB, free: 9.746 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005125/0.4475, allocations: 0 / 0.4954 GB, free: 9.746 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03292/0.4804, allocations: 9.577 MB / 0.5047 GB, free: 88 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.4804, allocations: 8.031 kB / 0.5047 GB, free: 80 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003804/0.4842, allocations: 1.135 MB / 0.5058 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3101/0.7943, allocations: 23.27 MB / 0.5285 GB, free: 7.633 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4441/1.238, allocations: 7.882 MB / 0.5362 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006431/1.239, allocations: 439.4 kB / 0.5367 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00264/1.242, allocations: 0.5788 MB / 0.5372 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03131/1.273, allocations: 16.86 MB / 0.5537 GB, free: 93.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003906/1.273, allocations: 79.58 kB / 0.5538 GB, free: 93.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001999/1.275, allocations: 272.9 kB / 0.554 GB, free: 93.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003956/1.279, allocations: 2.655 MB / 0.5566 GB, free: 90.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02758/1.307, allocations: 14.4 MB / 0.5707 GB, free: 76.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07847/1.385, allocations: 63.61 MB / 0.6328 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02003/1.406, allocations: 7.904 MB / 0.6405 GB, free: 4.191 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005032/1.411, allocations: 4.588 MB / 0.645 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0337/1.444, allocations: 17.46 MB / 0.6621 GB, free: 14.23 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.209e-05/1.444, allocations: 64.56 kB / 0.6621 GB, free: 14.16 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.823e-06/1.444, allocations: 0 / 0.6621 GB, free: 14.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2562/1.701, allocations: 72.96 MB / 0.7334 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002687/1.701, allocations: 372.6 kB / 0.7337 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2515/1.952, allocations: 6.425 MB / 0.74 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001092/1.953, allocations: 84.53 kB / 0.7401 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004483/1.958, allocations: 5.024 MB / 0.745 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00235/1.96, allocations: 1.436 MB / 0.7464 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003841/1.964, allocations: 1.852 MB / 0.7482 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.164e-05/1.964, allocations: 304.9 kB / 0.7485 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007268/1.971, allocations: 5.663 MB / 0.754 GB, free: 176 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01001/1.981, allocations: 10.62 MB / 0.7644 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01744/1.999, allocations: 17.36 MB / 0.7813 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002065/1.999, allocations: 48.84 kB / 0.7814 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04157/2.041, allocations: 21.92 MB / 0.8028 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/2.041, allocations: 76 kB / 0.8029 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002039/2.041, allocations: 172 kB / 0.803 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0185/2.059, allocations: 6.857 MB / 0.8097 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006927/2.066, allocations: 2.074 MB / 0.8118 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03978/2.106, allocations: 36.11 MB / 0.847 GB, free: 91.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009075/2.115, allocations: 0.7139 MB / 0.8477 GB, free: 90.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001724/2.117, allocations: 0.5109 MB / 0.8482 GB, free: 89.98 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005683/2.123, allocations: 3.424 MB / 0.8516 GB, free: 86.55 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001595/2.124, allocations: 0.617 MB / 0.8522 GB, free: 85.93 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.028/2.152, allocations: 16.03 MB / 0.8678 GB, free: 69.84 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.463e-05/2.152, allocations: 51.98 kB / 0.8679 GB, free: 69.79 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.849e-05/2.152, allocations: 16.66 kB / 0.8679 GB, free: 69.77 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.8e-05/2.152, allocations: 19.94 kB / 0.8679 GB, free: 69.75 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04981/2.202, allocations: 31.19 MB / 0.8984 GB, free: 38.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-05/2.202, allocations: 0 / 0.8984 GB, free: 38.17 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003103/2.205, allocations: 0.6045 MB / 0.8989 GB, free: 37.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01726/2.223, allocations: 6.44 MB / 0.9052 GB, free: 31.11 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008635/2.224, allocations: 71.28 kB / 0.9053 GB, free: 31.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2923/2.516, allocations: 34.34 MB / 0.9388 GB, free: 180.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/2.516, allocations: 3.062 kB / 0.9388 GB, free: 180.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03677/2.553, allocations: 23.5 MB / 0.9618 GB, free: 174 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002101/2.555, allocations: 0.5779 MB / 0.9624 GB, free: 174 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002201/2.557, allocations: 67.27 kB / 0.9624 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004935/2.562, allocations: 432.4 kB / 0.9628 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001398/2.563, allocations: 260.4 kB / 0.9631 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004201/2.564, allocations: 92.97 kB / 0.9632 GB, free: 173.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006558/2.57, allocations: 4.113 MB / 0.9672 GB, free: 172.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.01e-07/2.57, allocations: 0 / 0.9672 GB, free: 172.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01023/2.58, allocations: 2.199 MB / 0.9693 GB, free: 172.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03666/2.617, allocations: 24.27 MB / 0.993 GB, free: 153.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01973/2.637, allocations: 13.66 MB / 1.006 GB, free: 139.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/2.637, allocations: 3.875 kB / 1.006 GB, free: 139.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.009043/2.646, allocations: 6.031 MB / 1.012 GB, free: 133.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0075/2.653, allocations: 0.9384 MB / 1.013 GB, free: 132.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1514/2.805, allocations: 102.9 MB / 1.114 GB, free: 22.01 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006046/2.811, allocations: 5.259 MB / 1.119 GB, free: 16.71 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00801/2.819, allocations: 3.032 MB / 1.122 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006499/2.825, allocations: 3.389 MB / 1.125 GB, free: 10.29 MB / 0.545 GB Notification: Performance of SimCode: time 1.503e-06/2.825, allocations: 4 kB / 1.125 GB, free: 10.28 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4961/3.322, allocations: 172.2 MB / 1.293 GB, free: 69.65 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.2/32.52, allocations: 0 / 1.293 GB, free: 69.65 MB / 0.5607 GB " [Timeout remaining time 627] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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: 35.39037387299686]