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) 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 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001247, allocations: 114.6 kB / 17.06 MB, free: 6.004 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.001329/0.001329, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 43.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2974, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01689/0.3144, allocations: 18.18 MB / 418.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.3256, allocations: 6.046 MB / 424.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002772/0.3284, allocations: 143.6 kB / 425.1 MB, free: 404 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01004/0.3384, allocations: 6.266 MB / 431.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007166/0.3457, allocations: 2.852 MB / 434.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004462/0.3502, allocations: 2.273 MB / 436.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01196/0.3621, allocations: 9.49 MB / 446 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009638/0.3718, allocations: 8.415 MB / 454.4 MB, free: 2.949 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005559/0.3774, allocations: 3.218 MB / 457.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005752/0.3832, allocations: 4.168 MB / 461.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001344/0.3846, allocations: 0.7226 MB / 462.5 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003167/0.3877, allocations: 1.9 MB / 464.4 MB, free: 8.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003312/0.3911, allocations: 3.862 MB / 468.3 MB, free: 5.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004324/0.3954, allocations: 4.138 MB / 472.4 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01434/0.4098, allocations: 13.23 MB / 485.6 MB, free: 3.617 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4098, allocations: 0 / 485.6 MB, free: 3.617 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4098, allocations: 0 / 485.6 MB, free: 3.617 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003524/0.4102, allocations: 4 kB / 485.6 MB, free: 3.613 MB / 398.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.02024/0.4304, allocations: 8.915 MB / 494.5 MB, free: 10.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.4305, allocations: 16.03 kB / 494.6 MB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04843/0.4789, allocations: 4.844 MB / 499.4 MB, free: 5.738 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01617/0.4951, allocations: 6.501 MB / 0.494 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002999/0.4955, allocations: 435.6 kB / 0.4945 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001563/0.4971, allocations: 0.5856 MB / 0.495 GB, free: 14.15 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03095/0.528, allocations: 17.04 MB / 0.5117 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002661/0.5283, allocations: 87.27 kB / 0.5118 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008645/0.5292, allocations: 263.8 kB / 0.512 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004313/0.5335, allocations: 2.658 MB / 0.5146 GB, free: 9.152 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03013/0.5637, allocations: 14.78 MB / 0.529 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5133/1.077, allocations: 64.24 MB / 0.5918 GB, free: 78.04 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02183/1.099, allocations: 8.783 MB / 0.6003 GB, free: 69.14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004963/1.104, allocations: 5.063 MB / 0.6053 GB, free: 64.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02262/1.127, allocations: 18.63 MB / 0.6235 GB, free: 45.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/1.127, allocations: 64.56 kB / 0.6235 GB, free: 45.36 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.811e-06/1.127, allocations: 3.984 kB / 0.6236 GB, free: 45.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2536/1.38, allocations: 73.99 MB / 0.6958 GB, free: 3.312 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002349/1.381, allocations: 380.6 kB / 0.6962 GB, free: 2.859 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00971/1.39, allocations: 6.367 MB / 0.7024 GB, free: 12.48 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001043/1.391, allocations: 81.7 kB / 0.7025 GB, free: 12.4 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003482/1.395, allocations: 4.749 MB / 0.7071 GB, free: 7.586 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001934/1.397, allocations: 1.384 MB / 0.7085 GB, free: 6.184 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003084/1.4, allocations: 1.974 MB / 0.7104 GB, free: 4.195 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.417e-05/1.4, allocations: 301.1 kB / 0.7107 GB, free: 3.898 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008287/1.408, allocations: 5.988 MB / 0.7165 GB, free: 13.9 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01177/1.42, allocations: 11.03 MB / 0.7273 GB, free: 440 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2396/1.66, allocations: 17.95 MB / 0.7448 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001774/1.66, allocations: 49.75 kB / 0.7449 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04669/1.707, allocations: 23.34 MB / 0.7677 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/1.707, allocations: 82.5 kB / 0.7677 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002136/1.707, allocations: 173.2 kB / 0.7679 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0217/1.729, allocations: 7.436 MB / 0.7752 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007847/1.737, allocations: 2.191 MB / 0.7773 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04253/1.779, allocations: 38.09 MB / 0.8145 GB, free: 132 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009444/1.789, allocations: 0.7457 MB / 0.8152 GB, free: 131.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001634/1.79, allocations: 0.5305 MB / 0.8158 GB, free: 130.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * 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 (1091): * Single equations (assignments): 1084 * 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.005926/1.796, allocations: 3.433 MB / 0.8191 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.798, allocations: 0.5713 MB / 0.8197 GB, free: 127.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02988/1.828, allocations: 16.96 MB / 0.8362 GB, free: 110.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.668e-05/1.828, allocations: 48.73 kB / 0.8363 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-05/1.828, allocations: 20 kB / 0.8363 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.099e-05/1.828, allocations: 15.94 kB / 0.8363 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05218/1.88, allocations: 32.03 MB / 0.8676 GB, free: 77.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.45e-05/1.88, allocations: 9.625 kB / 0.8676 GB, free: 77.72 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003075/1.883, allocations: 0.6086 MB / 0.8682 GB, free: 77.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01958/1.903, allocations: 7.017 MB / 0.875 GB, free: 70.07 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006181/1.903, allocations: 60 kB / 0.8751 GB, free: 70.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03981/1.943, allocations: 36.3 MB / 0.9105 GB, free: 33.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.943, allocations: 4 kB / 0.9106 GB, free: 33.29 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03747/1.981, allocations: 24.6 MB / 0.9346 GB, free: 8.562 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002229/1.983, allocations: 0.6341 MB / 0.9352 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001208/1.984, allocations: 67.11 kB / 0.9353 GB, free: 7.844 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00411/1.988, allocations: 447.3 kB / 0.9357 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.238/2.226, allocations: 254.4 kB / 0.9359 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001205/2.228, allocations: 93.39 kB / 0.936 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008284/2.236, allocations: 4.047 MB / 0.94 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/2.236, allocations: 0 / 0.94 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008814/2.245, allocations: 2.29 MB / 0.9422 GB, free: 178.2 MB / 0.5294 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.0009567/2.246, allocations: 281.3 kB / 0.9425 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01793/2.264, allocations: 14.88 MB / 0.957 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/2.264, allocations: 3.812 kB / 0.957 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008424/2.272, allocations: 6.711 MB / 0.9636 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004363/2.277, allocations: 0.8857 MB / 0.9644 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02583/2.302, allocations: 19.92 MB / 0.9839 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004967/2.307, allocations: 5.267 MB / 0.989 GB, free: 149.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00563/2.313, allocations: 3.016 MB / 0.992 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001428/2.314, allocations: 387.8 kB / 0.9923 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/2.314, allocations: 0 / 0.9923 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.139/2.453, allocations: 109.8 MB / 1.1 GB, free: 38.24 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches