Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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) 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001696/0.001696, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001903/0.001903, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.802/1.802, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001112/0.001112, allocations: 55.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2912, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01885/0.3101, allocations: 18.04 MB / 428 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.3244, allocations: 6.037 MB / 434 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004803/0.3292, allocations: 139.6 kB / 434.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.012/0.3412, allocations: 6.242 MB / 440.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008301/0.3497, allocations: 2.813 MB / 443.2 MB, free: 208 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005424/0.3551, allocations: 2.28 MB / 445.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.3688, allocations: 9.684 MB / 455.2 MB, free: 4.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01232/0.3812, allocations: 8.416 MB / 463.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006124/0.3874, allocations: 3.206 MB / 466.8 MB, free: 8.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006751/0.3941, allocations: 4.168 MB / 470.9 MB, free: 4.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002575/0.3968, allocations: 0.7148 MB / 471.7 MB, free: 3.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00499/0.4018, allocations: 1.892 MB / 473.5 MB, free: 1.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005441/0.4073, allocations: 3.835 MB / 477.4 MB, free: 13.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00956/0.4169, allocations: 4.13 MB / 481.5 MB, free: 9.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01715/0.434, allocations: 13.17 MB / 494.7 MB, free: 12.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4341, allocations: 0 / 494.7 MB, free: 12.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4341, allocations: 0 / 494.7 MB, free: 12.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004971/0.4346, allocations: 0 / 494.7 MB, free: 12.48 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.02659/0.4612, allocations: 8.923 MB / 0.4918 GB, free: 3.477 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.4613, allocations: 8.031 kB / 0.4918 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05076/0.512, allocations: 4.847 MB / 0.4965 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/0.5312, allocations: 6.392 MB / 0.5028 GB, free: 8.137 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004672/0.5317, allocations: 431.7 kB / 0.5032 GB, free: 7.715 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002716/0.5344, allocations: 0.5856 MB / 0.5038 GB, free: 7.129 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03946/0.5739, allocations: 17.05 MB / 0.5204 GB, free: 5.129 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005277/0.5745, allocations: 79.27 kB / 0.5205 GB, free: 5.051 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002656/0.5772, allocations: 275.8 kB / 0.5208 GB, free: 4.781 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006354/0.5835, allocations: 2.65 MB / 0.5233 GB, free: 2.129 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04206/0.6256, allocations: 14.78 MB / 0.5378 GB, free: 3.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5826/1.208, allocations: 64.24 MB / 0.6005 GB, free: 67.02 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02256/1.231, allocations: 8.781 MB / 0.6091 GB, free: 58.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007215/1.238, allocations: 5.073 MB / 0.614 GB, free: 53.04 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03885/1.277, allocations: 18.63 MB / 0.6322 GB, free: 34.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.642e-05/1.277, allocations: 68.5 kB / 0.6323 GB, free: 34.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 9.468e-06/1.277, allocations: 0 / 0.6323 GB, free: 34.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.3087/1.586, allocations: 73.97 MB / 0.7045 GB, free: 8.156 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002572/1.586, allocations: 384.8 kB / 0.7049 GB, free: 7.699 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01195/1.598, allocations: 6.355 MB / 0.7111 GB, free: 1.336 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001191/1.6, allocations: 81.7 kB / 0.7112 GB, free: 1.25 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004577/1.604, allocations: 4.76 MB / 0.7158 GB, free: 12.43 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002705/1.607, allocations: 1.372 MB / 0.7172 GB, free: 11.04 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004503/1.611, allocations: 1.974 MB / 0.7191 GB, free: 9.047 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001393/1.612, allocations: 301.1 kB / 0.7194 GB, free: 8.75 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008946/1.62, allocations: 5.992 MB / 0.7252 GB, free: 2.75 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01408/1.635, allocations: 11.02 MB / 0.736 GB, free: 5.281 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2592/1.894, allocations: 17.96 MB / 0.7535 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/1.894, allocations: 51.5 kB / 0.7536 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04645/1.94, allocations: 23.34 MB / 0.7764 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001388/1.941, allocations: 77.22 kB / 0.7765 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002366/1.941, allocations: 170.7 kB / 0.7766 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02597/1.967, allocations: 7.454 MB / 0.7839 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007436/1.974, allocations: 2.183 MB / 0.786 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04313/2.018, allocations: 38.09 MB / 0.8232 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009435/2.027, allocations: 0.7432 MB / 0.824 GB, free: 113.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002047/2.029, allocations: 0.5312 MB / 0.8245 GB, free: 112.9 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.007581/2.037, allocations: 3.435 MB / 0.8278 GB, free: 109.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001579/2.038, allocations: 0.5717 MB / 0.8284 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03046/2.069, allocations: 16.95 MB / 0.845 GB, free: 92.32 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.968e-05/2.069, allocations: 44 kB / 0.845 GB, free: 92.28 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.713e-05/2.069, allocations: 16 kB / 0.845 GB, free: 92.27 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-05/2.069, allocations: 23.88 kB / 0.845 GB, free: 92.24 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05485/2.124, allocations: 32.04 MB / 0.8763 GB, free: 59.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.105e-05/2.124, allocations: 8.188 kB / 0.8763 GB, free: 59.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003298/2.127, allocations: 0.6045 MB / 0.8769 GB, free: 59.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02048/2.148, allocations: 7.011 MB / 0.8838 GB, free: 52.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/2.149, allocations: 65.95 kB / 0.8838 GB, free: 52.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04062/2.19, allocations: 36.3 MB / 0.9193 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/2.19, allocations: 4 kB / 0.9193 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.298/2.488, allocations: 24.6 MB / 0.9433 GB, free: 182.2 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001942/2.49, allocations: 0.6308 MB / 0.9439 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001792/2.491, allocations: 61.11 kB / 0.944 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004926/2.496, allocations: 453.1 kB / 0.9444 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001193/2.497, allocations: 246.3 kB / 0.9446 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003938/2.498, allocations: 93.5 kB / 0.9447 GB, free: 182.1 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.005393/2.503, allocations: 4.044 MB / 0.9487 GB, free: 181.9 MB / 0.5451 GB Notification: Performance of sort global known variables: time 2.61e-07/2.503, allocations: 0 / 0.9487 GB, free: 181.9 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.008575/2.512, allocations: 2.278 MB / 0.9509 GB, free: 181.6 MB / 0.5451 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.001031/2.513, allocations: 292.6 kB / 0.9512 GB, free: 181.5 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01941/2.532, allocations: 14.89 MB / 0.9657 GB, free: 175.7 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/2.532, allocations: 0 / 0.9657 GB, free: 175.7 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.009306/2.542, allocations: 6.703 MB / 0.9723 GB, free: 172.8 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005277/2.547, allocations: 0.8796 MB / 0.9731 GB, free: 172.5 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02934/2.576, allocations: 20.58 MB / 0.9932 GB, free: 155.7 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006522/2.583, allocations: 5.225 MB / 0.9983 GB, free: 151.7 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002558/2.586, allocations: 438.1 kB / 0.9987 GB, free: 151.3 MB / 0.5451 GB Notification: Performance of SimCode: time 1.383e-06/2.586, allocations: 0 / 0.9987 GB, free: 151.3 MB / 0.5451 GB Notification: Performance of Templates: time 0.5577/3.143, allocations: 210.6 MB / 1.204 GB, free: 136.3 MB / 0.5451 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches