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.0007839/0.000784, allocations: 96.33 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 207.1 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.8 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002428, allocations: 8 kB / 307.7 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09507/0.09533, allocations: 51.53 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.246/0.3413, allocations: 75.06 MB / 434.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03997/0.3814, allocations: 15.65 MB / 450 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01814/0.3995, allocations: 355.1 kB / 450.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002316/0.4019, allocations: 0.6605 MB / 451 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006702/0.4086, allocations: 2.685 MB / 453.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002719/0.4113, allocations: 1.357 MB / 455 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01451/0.4259, allocations: 13.82 MB / 468.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0149/0.4408, allocations: 11.87 MB / 480.7 MB, free: 1.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003742/0.4446, allocations: 2.214 MB / 482.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004922/0.4495, allocations: 3.664 MB / 486.6 MB, free: 11.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008375/0.4504, allocations: 248 kB / 486.8 MB, free: 10.94 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003159/0.4535, allocations: 1.517 MB / 488.4 MB, free: 9.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002896/0.4564, allocations: 3.237 MB / 491.6 MB, free: 6.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003434/0.4599, allocations: 3.449 MB / 495 MB, free: 2.699 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01162/0.4715, allocations: 12.26 MB / 0.4954 GB, free: 6.395 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4715, allocations: 0 / 0.4954 GB, free: 6.395 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4716, allocations: 0 / 0.4954 GB, free: 6.395 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002694/0.4718, allocations: 4 kB / 0.4954 GB, free: 6.391 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.01528/0.4871, allocations: 7.305 MB / 0.5026 GB, free: 15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4872, allocations: 12.03 kB / 0.5026 GB, free: 14.99 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04922/0.5364, allocations: 4.957 MB / 0.5074 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01584/0.5523, allocations: 6.267 MB / 0.5135 GB, free: 3.676 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003667/0.5527, allocations: 431.7 kB / 0.5139 GB, free: 3.254 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002046/0.5548, allocations: 0.578 MB / 0.5145 GB, free: 2.676 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03142/0.5862, allocations: 17.11 MB / 0.5312 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002434/0.5865, allocations: 83.27 kB / 0.5313 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007768/0.5873, allocations: 267.8 kB / 0.5315 GB, free: 280 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3449/0.9321, allocations: 2.65 MB / 0.5341 GB, free: 141.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03247/0.9647, allocations: 14.84 MB / 0.5486 GB, free: 137.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06607/1.031, allocations: 64.51 MB / 0.6116 GB, free: 77.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02057/1.051, allocations: 8.84 MB / 0.6203 GB, free: 68.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004859/1.056, allocations: 5.06 MB / 0.6252 GB, free: 63.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02141/1.078, allocations: 18.62 MB / 0.6434 GB, free: 44.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.244e-05/1.078, allocations: 72.5 kB / 0.6435 GB, free: 44.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 6.302e-06/1.078, allocations: 0 / 0.6435 GB, free: 44.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4737/1.551, allocations: 75.04 MB / 0.7167 GB, free: 143 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/1.552, allocations: 379.6 kB / 0.7171 GB, free: 142.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009443/1.561, allocations: 6.358 MB / 0.7233 GB, free: 140.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009755/1.562, allocations: 85.09 kB / 0.7234 GB, free: 140.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002369/1.564, allocations: 4.752 MB / 0.728 GB, free: 136.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/1.566, allocations: 1.378 MB / 0.7294 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/1.567, allocations: 0.8143 MB / 0.7302 GB, free: 135.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.326e-05/1.567, allocations: 302.3 kB / 0.7305 GB, free: 135 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006355/1.573, allocations: 5.995 MB / 0.7363 GB, free: 132.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008137/1.581, allocations: 11.02 MB / 0.7471 GB, free: 123.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01555/1.597, allocations: 17.97 MB / 0.7646 GB, free: 108.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001042/1.597, allocations: 48 kB / 0.7647 GB, free: 108.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04104/1.638, allocations: 23.36 MB / 0.7875 GB, free: 85.38 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001875/1.638, allocations: 84.06 kB / 0.7876 GB, free: 85.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002273/1.639, allocations: 168.9 kB / 0.7877 GB, free: 85.13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02188/1.661, allocations: 7.483 MB / 0.795 GB, free: 77.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007668/1.668, allocations: 2.191 MB / 0.7972 GB, free: 75.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04342/1.712, allocations: 35.64 MB / 0.832 GB, free: 39.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009236/1.721, allocations: 0.7449 MB / 0.8327 GB, free: 38.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001624/1.723, allocations: 0.529 MB / 0.8332 GB, free: 38.16 MB / 462.1 MB 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.006668/1.729, allocations: 3.448 MB / 0.8366 GB, free: 34.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001851/1.731, allocations: 0.5708 MB / 0.8371 GB, free: 34.12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03303/1.764, allocations: 16.96 MB / 0.8537 GB, free: 17.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.761e-05/1.764, allocations: 48.62 kB / 0.8537 GB, free: 17.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-05/1.764, allocations: 20 kB / 0.8538 GB, free: 17.02 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-05/1.765, allocations: 23.92 kB / 0.8538 GB, free: 17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2984/2.063, allocations: 32.17 MB / 0.8852 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.579e-05/2.063, allocations: 2.75 kB / 0.8852 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003367/2.066, allocations: 0.6015 MB / 0.8858 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02101/2.087, allocations: 7.143 MB / 0.8928 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007333/2.088, allocations: 68.38 kB / 0.8928 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04014/2.128, allocations: 33.91 MB / 0.926 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/2.128, allocations: 11.41 kB / 0.926 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03712/2.165, allocations: 24.61 MB / 0.95 GB, free: 82.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/2.167, allocations: 0.6369 MB / 0.9506 GB, free: 82.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001115/2.169, allocations: 60.78 kB / 0.9507 GB, free: 82.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004102/2.173, allocations: 444 kB / 0.9511 GB, free: 82.15 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/2.174, allocations: 258.4 kB / 0.9513 GB, free: 81.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003396/2.174, allocations: 90.36 kB / 0.9514 GB, free: 81.81 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005206/2.179, allocations: 4.04 MB / 0.9554 GB, free: 77.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/2.179, allocations: 0 / 0.9554 GB, free: 77.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008128/2.187, allocations: 2.281 MB / 0.9576 GB, free: 75.51 MB / 462.1 MB 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.0008958/2.188, allocations: 298 kB / 0.9579 GB, free: 75.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01843/2.207, allocations: 14.85 MB / 0.9724 GB, free: 60.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/2.207, allocations: 0 / 0.9724 GB, free: 60.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008941/2.216, allocations: 6.696 MB / 0.9789 GB, free: 53.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007061/2.223, allocations: 0.8274 MB / 0.9797 GB, free: 52.92 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02822/2.251, allocations: 23.55 MB / 1.003 GB, free: 29.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005151/2.256, allocations: 5.263 MB / 1.008 GB, free: 24.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006684/2.263, allocations: 3.02 MB / 1.011 GB, free: 21.01 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/2.265, allocations: 383.4 kB / 1.011 GB, free: 20.64 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/2.265, allocations: 4 kB / 1.011 GB, free: 20.63 MB / 462.1 MB Notification: Performance of Templates: time 0.349/2.614, allocations: 106 MB / 1.115 GB, free: 94.48 MB / 478.1 MB 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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches