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.0009495/0.0009495, allocations: 101.9 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 206.9 kB / 18.94 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 247.4 MB, free: 9.684 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002037/0.0002037, allocations: 11.98 kB / 308.4 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08479/0.08501, allocations: 51.51 MB / 359.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2408/0.3259, allocations: 75.07 MB / 435 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03616/0.3621, allocations: 15.64 MB / 450.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01639/0.3785, allocations: 355.1 kB / 451 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002236/0.3808, allocations: 0.6723 MB / 451.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00701/0.3878, allocations: 2.674 MB / 454.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002833/0.3907, allocations: 1.35 MB / 455.7 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0146/0.4053, allocations: 13.83 MB / 469.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01539/0.4207, allocations: 11.88 MB / 481.4 MB, free: 1.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004006/0.4248, allocations: 2.21 MB / 483.6 MB, free: 14.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004827/0.4296, allocations: 3.66 MB / 487.2 MB, free: 11.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001026/0.4307, allocations: 248 kB / 487.5 MB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003103/0.4338, allocations: 1.525 MB / 489 MB, free: 9.363 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003012/0.4368, allocations: 3.237 MB / 492.2 MB, free: 6.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003793/0.4406, allocations: 3.453 MB / 495.7 MB, free: 2.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009419/0.4501, allocations: 10.31 MB / 0.4941 GB, free: 8.301 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.4501, allocations: 0 / 0.4941 GB, free: 8.301 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4501, allocations: 0 / 0.4941 GB, free: 8.301 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003288/0.4505, allocations: 0 / 0.4941 GB, free: 8.301 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.01627/0.4667, allocations: 7.313 MB / 0.5013 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.4668, allocations: 8.031 kB / 0.5013 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04996/0.5167, allocations: 4.965 MB / 0.5061 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01433/0.5311, allocations: 6.255 MB / 0.5123 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000291/0.5314, allocations: 435.7 kB / 0.5127 GB, free: 5.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001297/0.5327, allocations: 0.578 MB / 0.5132 GB, free: 4.582 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03136/0.5641, allocations: 17.11 MB / 0.5299 GB, free: 2.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002209/0.5644, allocations: 79.28 kB / 0.53 GB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007524/0.5651, allocations: 267.8 kB / 0.5303 GB, free: 2.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.347/0.9122, allocations: 2.646 MB / 0.5329 GB, free: 140.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03413/0.9463, allocations: 14.84 MB / 0.5474 GB, free: 136.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06584/1.012, allocations: 64.51 MB / 0.6104 GB, free: 79.18 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/1.033, allocations: 8.842 MB / 0.619 GB, free: 70.18 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004985/1.038, allocations: 5.055 MB / 0.6239 GB, free: 65.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02303/1.061, allocations: 18.63 MB / 0.6421 GB, free: 46.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.945e-05/1.061, allocations: 68.56 kB / 0.6422 GB, free: 46.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.651e-06/1.061, allocations: 0 / 0.6422 GB, free: 46.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4504/1.511, allocations: 75.05 MB / 0.7155 GB, free: 144 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/1.512, allocations: 379.7 kB / 0.7158 GB, free: 143.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/1.522, allocations: 6.358 MB / 0.722 GB, free: 141.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00106/1.523, allocations: 82.69 kB / 0.7221 GB, free: 141.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003178/1.526, allocations: 4.751 MB / 0.7268 GB, free: 137.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00196/1.528, allocations: 1.379 MB / 0.7281 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/1.529, allocations: 0.8174 MB / 0.7289 GB, free: 136.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.396e-05/1.53, allocations: 301.1 kB / 0.7292 GB, free: 136 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007351/1.537, allocations: 5.993 MB / 0.735 GB, free: 133.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01052/1.547, allocations: 11.02 MB / 0.7458 GB, free: 124.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01831/1.566, allocations: 17.96 MB / 0.7633 GB, free: 110.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002193/1.566, allocations: 52 kB / 0.7634 GB, free: 110.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04658/1.613, allocations: 23.36 MB / 0.7862 GB, free: 86.99 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002503/1.613, allocations: 76.19 kB / 0.7863 GB, free: 86.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003041/1.613, allocations: 176 kB / 0.7864 GB, free: 86.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02164/1.635, allocations: 7.482 MB / 0.7938 GB, free: 79.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007652/1.643, allocations: 2.195 MB / 0.7959 GB, free: 77.06 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04285/1.685, allocations: 35.63 MB / 0.8307 GB, free: 41.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009726/1.695, allocations: 0.7487 MB / 0.8314 GB, free: 40.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001971/1.697, allocations: 0.5243 MB / 0.8319 GB, free: 39.77 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.008012/1.705, allocations: 3.439 MB / 0.8353 GB, free: 36.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002333/1.708, allocations: 0.5747 MB / 0.8359 GB, free: 35.74 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0336/1.741, allocations: 16.97 MB / 0.8524 GB, free: 18.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.83e-05/1.741, allocations: 51.05 kB / 0.8525 GB, free: 18.65 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.601e-05/1.741, allocations: 17.81 kB / 0.8525 GB, free: 18.64 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.345e-05/1.742, allocations: 20.59 kB / 0.8525 GB, free: 18.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.278/2.02, allocations: 32.18 MB / 0.8839 GB, free: 128.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-05/2.02, allocations: 2.562 kB / 0.8839 GB, free: 128.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003384/2.023, allocations: 0.6024 MB / 0.8845 GB, free: 128.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02118/2.044, allocations: 7.148 MB / 0.8915 GB, free: 127.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008661/2.045, allocations: 59.61 kB / 0.8916 GB, free: 127.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0393/2.084, allocations: 33.92 MB / 0.9247 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/2.084, allocations: 12.03 kB / 0.9247 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03865/2.123, allocations: 24.61 MB / 0.9487 GB, free: 84.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/2.125, allocations: 0.6346 MB / 0.9493 GB, free: 84.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001821/2.127, allocations: 67.92 kB / 0.9494 GB, free: 84.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004846/2.132, allocations: 448.8 kB / 0.9498 GB, free: 83.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/2.133, allocations: 246.2 kB / 0.9501 GB, free: 83.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003686/2.133, allocations: 91.98 kB / 0.9502 GB, free: 83.32 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005689/2.139, allocations: 4.04 MB / 0.9541 GB, free: 79.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.723e-06/2.139, allocations: 0 / 0.9541 GB, free: 79.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009754/2.149, allocations: 2.289 MB / 0.9563 GB, free: 77.02 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.001348/2.15, allocations: 296.7 kB / 0.9566 GB, free: 76.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01972/2.17, allocations: 14.85 MB / 0.9711 GB, free: 61.94 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/2.17, allocations: 0 / 0.9711 GB, free: 61.94 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009503/2.18, allocations: 6.7 MB / 0.9777 GB, free: 55.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009038/2.189, allocations: 0.8219 MB / 0.9785 GB, free: 54.44 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03174/2.22, allocations: 24.16 MB / 1.002 GB, free: 30.22 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007742/2.228, allocations: 5.208 MB / 1.007 GB, free: 24.97 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002476/2.231, allocations: 440.3 kB / 1.008 GB, free: 24.54 MB / 462.1 MB Notification: Performance of SimCode: time 1.393e-06/2.231, allocations: 0 / 1.008 GB, free: 24.54 MB / 462.1 MB Notification: Performance of Templates: time 0.4212/2.652, allocations: 207.1 MB / 1.21 GB, free: 12.85 MB / 494.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/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