Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001485/0.001485, allocations: 110.4 kB / 17.73 MB, free: 5.328 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.001545/0.001545, allocations: 183.1 kB / 18.66 MB, free: 4.402 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.442/1.442, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.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.001218/0.001218, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09782, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.222/0.3199, allocations: 18.57 MB / 393.2 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01462/0.3345, allocations: 6.156 MB / 399.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004487/0.339, allocations: 144 kB / 399.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01276/0.3519, allocations: 6.282 MB / 405.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009401/0.3613, allocations: 2.929 MB / 408.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005571/0.3669, allocations: 2.284 MB / 411 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01348/0.3804, allocations: 8.844 MB / 419.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009215/0.3897, allocations: 8.42 MB / 428.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006216/0.396, allocations: 3.229 MB / 431.5 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006753/0.4027, allocations: 4.199 MB / 435.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002062/0.4048, allocations: 0.7188 MB / 436.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004441/0.4093, allocations: 1.9 MB / 438.3 MB, free: 0 / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004143/0.4135, allocations: 3.846 MB / 442.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006682/0.4202, allocations: 4.438 MB / 446.6 MB, free: 7.684 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01777/0.438, allocations: 13.98 MB / 460.6 MB, free: 9.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-05/0.438, allocations: 3.938 kB / 460.6 MB, free: 9.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.4381, allocations: 0 / 460.6 MB, free: 9.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006827/0.4387, allocations: 4 kB / 460.6 MB, free: 9.648 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03317/0.4719, allocations: 9.707 MB / 470.3 MB, free: 15.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/0.472, allocations: 12.03 kB / 470.3 MB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004302/0.4763, allocations: 1.139 MB / 471.5 MB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3341/0.8104, allocations: 23.27 MB / 494.7 MB, free: 7.375 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02427/0.8348, allocations: 8.653 MB / 0.4916 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004915/0.8353, allocations: 435.9 kB / 0.492 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002978/0.8383, allocations: 0.5856 MB / 0.4926 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04086/0.8792, allocations: 16.86 MB / 0.509 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005619/0.8798, allocations: 83.41 kB / 0.5091 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00259/0.8824, allocations: 267.8 kB / 0.5094 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00528/0.8877, allocations: 2.654 MB / 0.512 GB, free: 8.816 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03263/0.9204, allocations: 14.4 MB / 0.526 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4552/1.376, allocations: 63.94 MB / 0.5885 GB, free: 105.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02346/1.399, allocations: 8.639 MB / 0.5969 GB, free: 102.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005778/1.405, allocations: 4.914 MB / 0.6017 GB, free: 100.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03228/1.437, allocations: 18.15 MB / 0.6194 GB, free: 90.11 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.413e-05/1.437, allocations: 66.16 kB / 0.6195 GB, free: 90.05 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 6.873e-06/1.437, allocations: 0 / 0.6195 GB, free: 90.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.252/1.689, allocations: 73.38 MB / 0.6912 GB, free: 17.42 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/1.69, allocations: 378.4 kB / 0.6915 GB, free: 16.97 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/1.701, allocations: 6.501 MB / 0.6979 GB, free: 10.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001047/1.702, allocations: 85.7 kB / 0.6979 GB, free: 10.48 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003384/1.705, allocations: 5.046 MB / 0.7029 GB, free: 5.855 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002048/1.707, allocations: 1.426 MB / 0.7043 GB, free: 4.445 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005413/1.713, allocations: 1.851 MB / 0.7061 GB, free: 2.582 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.919e-05/1.713, allocations: 301.1 kB / 0.7064 GB, free: 2.285 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008993/1.722, allocations: 5.655 MB / 0.7119 GB, free: 12.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01424/1.736, allocations: 10.61 MB / 0.7222 GB, free: 15.64 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02342/1.76, allocations: 17.36 MB / 0.7392 GB, free: 11.84 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001899/1.76, allocations: 48 kB / 0.7393 GB, free: 11.79 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.2536/2.013, allocations: 22.01 MB / 0.7607 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/2.014, allocations: 78.25 kB / 0.7608 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003344/2.014, allocations: 174.2 kB / 0.761 GB, free: 173.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02153/2.035, allocations: 6.855 MB / 0.7677 GB, free: 172.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007931/2.043, allocations: 2.08 MB / 0.7697 GB, free: 172.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04609/2.09, allocations: 36.4 MB / 0.8053 GB, free: 152.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009514/2.099, allocations: 0.7138 MB / 0.806 GB, free: 151.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002053/2.101, allocations: 0.5112 MB / 0.8065 GB, free: 151.2 MB / 0.5138 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.007042/2.108, allocations: 3.449 MB / 0.8098 GB, free: 148 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002155/2.11, allocations: 0.6214 MB / 0.8104 GB, free: 147.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03197/2.142, allocations: 16.1 MB / 0.8261 GB, free: 131.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.191e-05/2.143, allocations: 55.59 kB / 0.8262 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.967e-05/2.143, allocations: 19.94 kB / 0.8262 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-05/2.143, allocations: 19.88 kB / 0.8262 GB, free: 131.6 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0598/2.203, allocations: 31.32 MB / 0.8568 GB, free: 99.98 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.443e-05/2.203, allocations: 0 / 0.8568 GB, free: 99.98 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003438/2.206, allocations: 0.6084 MB / 0.8574 GB, free: 99.37 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01842/2.225, allocations: 6.436 MB / 0.8637 GB, free: 92.91 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001035/2.226, allocations: 71.75 kB / 0.8638 GB, free: 92.84 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04081/2.266, allocations: 34.63 MB / 0.8976 GB, free: 58.02 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/2.267, allocations: 7.938 kB / 0.8976 GB, free: 58.01 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03962/2.306, allocations: 23.59 MB / 0.9206 GB, free: 34.38 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005844/2.312, allocations: 1.661 MB / 0.9223 GB, free: 32.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002589/2.315, allocations: 60 kB / 0.9223 GB, free: 32.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005869/2.321, allocations: 427.3 kB / 0.9227 GB, free: 32.23 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001689/2.322, allocations: 250.6 kB / 0.923 GB, free: 31.98 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008643/2.323, allocations: 95.44 kB / 0.923 GB, free: 31.89 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008246/2.331, allocations: 4.163 MB / 0.9271 GB, free: 27.74 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.41e-07/2.332, allocations: 0 / 0.9271 GB, free: 27.74 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01244/2.344, allocations: 2.196 MB / 0.9293 GB, free: 25.55 MB / 0.5138 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.307/2.651, allocations: 24.35 MB / 0.953 GB, free: 167.6 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02229/2.673, allocations: 14.3 MB / 0.967 GB, free: 162.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/2.673, allocations: 0 / 0.967 GB, free: 162.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.01033/2.684, allocations: 6.582 MB / 0.9734 GB, free: 159.2 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008832/2.693, allocations: 0.9437 MB / 0.9744 GB, free: 158.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1745/2.867, allocations: 103.3 MB / 1.075 GB, free: 58.48 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01135/2.879, allocations: 5.286 MB / 1.08 GB, free: 53.16 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.009008/2.888, allocations: 3.044 MB / 1.083 GB, free: 50.11 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006958/2.895, allocations: 3.405 MB / 1.087 GB, free: 46.71 MB / 0.5138 GB Notification: Performance of SimCode: time 1.372e-06/2.895, allocations: 4 kB / 1.087 GB, free: 46.7 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4571/3.352, allocations: 167.2 MB / 1.25 GB, free: 70.8 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.16/30.51, allocations: 0 / 1.25 GB, free: 70.8 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches