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.001492/0.001492, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001668/0.001668, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.481/1.481, 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.001225/0.001225, allocations: 59.86 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1062, allocations: 46.61 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2254/0.3317, allocations: 18.58 MB / 393.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01739/0.3491, allocations: 6.154 MB / 399.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006111/0.3553, allocations: 147.2 kB / 399.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01376/0.3691, allocations: 6.264 MB / 405.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009751/0.3789, allocations: 2.862 MB / 408.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006028/0.385, allocations: 2.28 MB / 410.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01525/0.4003, allocations: 8.842 MB / 419.8 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01259/0.4129, allocations: 8.415 MB / 428.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006298/0.4192, allocations: 3.198 MB / 431.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007307/0.4266, allocations: 4.183 MB / 435.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003609/0.4303, allocations: 0.7148 MB / 436.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005503/0.4358, allocations: 1.908 MB / 438.2 MB, free: 120 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006122/0.4419, allocations: 3.796 MB / 442 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01065/0.4526, allocations: 4.454 MB / 446.4 MB, free: 7.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02312/0.4758, allocations: 13.93 MB / 460.4 MB, free: 9.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.4758, allocations: 0 / 460.4 MB, free: 9.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4758, allocations: 0 / 460.4 MB, free: 9.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005215/0.4764, allocations: 0 / 460.4 MB, free: 9.867 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.03328/0.5097, allocations: 9.485 MB / 469.8 MB, free: 300 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.5097, allocations: 8.031 kB / 469.9 MB, free: 292 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004226/0.514, allocations: 1.131 MB / 471 MB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3357/0.8497, allocations: 23.25 MB / 494.2 MB, free: 7.859 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02129/0.8711, allocations: 8.615 MB / 0.4911 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004623/0.8716, allocations: 435.9 kB / 0.4915 GB, free: 14.74 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002357/0.874, allocations: 0.5854 MB / 0.4921 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03608/0.91, allocations: 16.86 MB / 0.5085 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004316/0.9105, allocations: 79.27 kB / 0.5086 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002109/0.9127, allocations: 267.8 kB / 0.5089 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004868/0.9175, allocations: 2.658 MB / 0.5114 GB, free: 9.336 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0318/0.9494, allocations: 14.39 MB / 0.5255 GB, free: 10.93 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5399/1.489, allocations: 63.83 MB / 0.5878 GB, free: 101.1 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02353/1.513, allocations: 8.632 MB / 0.5963 GB, free: 98.69 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005386/1.518, allocations: 4.923 MB / 0.6011 GB, free: 96.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02653/1.545, allocations: 18.14 MB / 0.6188 GB, free: 86.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.913e-05/1.545, allocations: 68.12 kB / 0.6189 GB, free: 86.64 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 7.585e-06/1.545, allocations: 0 / 0.6189 GB, free: 86.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2548/1.8, allocations: 72.99 MB / 0.6901 GB, free: 14.48 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001492/1.8, allocations: 380.4 kB / 0.6905 GB, free: 14.03 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/1.81, allocations: 6.488 MB / 0.6968 GB, free: 7.543 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001084/1.812, allocations: 89.7 kB / 0.6969 GB, free: 7.449 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002824/1.814, allocations: 4.859 MB / 0.7017 GB, free: 2.59 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001807/1.816, allocations: 1.37 MB / 0.703 GB, free: 1.23 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002973/1.819, allocations: 1.836 MB / 0.7048 GB, free: 15.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/1.819, allocations: 301.1 kB / 0.7051 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008749/1.828, allocations: 5.655 MB / 0.7106 GB, free: 9.422 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01337/1.842, allocations: 10.61 MB / 0.721 GB, free: 12.46 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02458/1.866, allocations: 17.36 MB / 0.7379 GB, free: 9.164 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002313/1.866, allocations: 48 kB / 0.738 GB, free: 9.117 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.341/2.207, allocations: 21.97 MB / 0.7594 GB, free: 172.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001504/2.208, allocations: 78.09 kB / 0.7595 GB, free: 172.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002948/2.208, allocations: 176.7 kB / 0.7597 GB, free: 172.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02267/2.231, allocations: 6.865 MB / 0.7664 GB, free: 171.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008721/2.239, allocations: 2.07 MB / 0.7684 GB, free: 171.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04537/2.285, allocations: 36.38 MB / 0.8039 GB, free: 149.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009471/2.294, allocations: 0.7128 MB / 0.8046 GB, free: 149.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001855/2.296, allocations: 0.5154 MB / 0.8051 GB, free: 148.7 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.006076/2.302, allocations: 3.44 MB / 0.8085 GB, free: 145.5 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0016/2.304, allocations: 0.5863 MB / 0.8091 GB, free: 145.2 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02973/2.334, allocations: 16.1 MB / 0.8248 GB, free: 129.1 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.124e-05/2.334, allocations: 51.98 kB / 0.8248 GB, free: 129 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.594e-05/2.334, allocations: 16 kB / 0.8248 GB, free: 129 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.638e-05/2.334, allocations: 19.5 kB / 0.8249 GB, free: 129 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05004/2.384, allocations: 31.32 MB / 0.8554 GB, free: 97.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.172e-05/2.384, allocations: 7.984 kB / 0.8555 GB, free: 97.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/2.387, allocations: 0.6145 MB / 0.8561 GB, free: 96.79 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01846/2.406, allocations: 6.433 MB / 0.8623 GB, free: 90.34 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009464/2.407, allocations: 63.98 kB / 0.8624 GB, free: 90.27 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03998/2.447, allocations: 34.62 MB / 0.8962 GB, free: 55.41 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/2.447, allocations: 11.94 kB / 0.8962 GB, free: 55.39 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03713/2.484, allocations: 23.55 MB / 0.9192 GB, free: 31.71 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00496/2.489, allocations: 1.626 MB / 0.9208 GB, free: 30.06 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001723/2.491, allocations: 62.27 kB / 0.9209 GB, free: 30 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004913/2.496, allocations: 427.3 kB / 0.9213 GB, free: 29.59 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001189/2.497, allocations: 254.6 kB / 0.9215 GB, free: 29.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003607/2.497, allocations: 99.92 kB / 0.9216 GB, free: 29.24 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005837/2.503, allocations: 4.158 MB / 0.9257 GB, free: 25.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.8e-07/2.503, allocations: 4 kB / 0.9257 GB, free: 25.09 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009882/2.513, allocations: 2.2 MB / 0.9278 GB, free: 22.91 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.25/2.763, allocations: 24.3 MB / 0.9516 GB, free: 166.5 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02134/2.784, allocations: 14.3 MB / 0.9655 GB, free: 160.9 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/2.784, allocations: 3 kB / 0.9655 GB, free: 160.9 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00962/2.794, allocations: 6.558 MB / 0.9719 GB, free: 158.1 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005758/2.8, allocations: 0.9575 MB / 0.9729 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1559/2.956, allocations: 103 MB / 1.073 GB, free: 56.17 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008866/2.965, allocations: 5.291 MB / 1.079 GB, free: 50.84 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.006938/2.972, allocations: 3.04 MB / 1.082 GB, free: 47.8 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005481/2.977, allocations: 3.409 MB / 1.085 GB, free: 44.39 MB / 0.5138 GB Notification: Performance of SimCode: time 1.403e-06/2.977, allocations: 0 / 1.085 GB, free: 44.39 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4571/3.434, allocations: 167.2 MB / 1.248 GB, free: 68.67 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.64/30.07, allocations: 3.984 kB / 1.248 GB, free: 68.66 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