Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001175/0.001175, allocations: 112.5 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.00125/0.001251, allocations: 204 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.399/1.399, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2447, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01351/0.2582, allocations: 13.45 MB / 423.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.2683, allocations: 4.877 MB / 428.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002346/0.2707, allocations: 87.75 kB / 428.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007845/0.2786, allocations: 4.159 MB / 432.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006971/0.2856, allocations: 2.117 MB / 434.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002893/0.2886, allocations: 1.107 MB / 435.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00808/0.2967, allocations: 6.052 MB / 441.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006653/0.3033, allocations: 5.295 MB / 447.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003657/0.307, allocations: 2.146 MB / 449.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004323/0.3114, allocations: 2.878 MB / 452.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.3129, allocations: 0.4922 MB / 452.6 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00363/0.3165, allocations: 1.623 MB / 454.2 MB, free: 5.117 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003381/0.32, allocations: 2.588 MB / 456.8 MB, free: 2.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004826/0.3248, allocations: 2.887 MB / 459.7 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.3358, allocations: 9.485 MB / 469.2 MB, free: 6.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3359, allocations: 0 / 469.2 MB, free: 6.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3359, allocations: 0 / 469.2 MB, free: 6.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003111/0.3362, allocations: 0 / 469.2 MB, free: 6.105 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01661/0.3528, allocations: 6.005 MB / 475.2 MB, free: 24 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.3529, allocations: 8.031 kB / 475.2 MB, free: 16 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01221/0.3651, allocations: 2.541 MB / 477.7 MB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008878/0.374, allocations: 3.761 MB / 481.5 MB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003892/0.3744, allocations: 308.3 kB / 481.8 MB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/0.3767, allocations: 431.6 kB / 482.2 MB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02569/0.4025, allocations: 12.42 MB / 494.6 MB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002304/0.4027, allocations: 55.48 kB / 494.7 MB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001246/0.404, allocations: 187.9 kB / 494.9 MB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003399/0.4074, allocations: 2.031 MB / 496.9 MB, free: 9.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0226/0.43, allocations: 10.57 MB / 0.4956 GB, free: 14.88 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05758/0.4876, allocations: 44.14 MB / 0.5387 GB, free: 1.477 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2341/0.7218, allocations: 4.848 MB / 0.5434 GB, free: 123.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/0.724, allocations: 2.011 MB / 0.5454 GB, free: 122.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009147/0.7332, allocations: 7.198 MB / 0.5524 GB, free: 118.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.7333, allocations: 60.78 kB / 0.5525 GB, free: 118.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=179): time 3.517e-06/0.7333, allocations: 0 / 0.5525 GB, free: 118.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=223): time 0.06023/0.7935, allocations: 19.5 MB / 0.5715 GB, free: 104.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.7936, allocations: 201.9 kB / 0.5717 GB, free: 104.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004843/0.7985, allocations: 4.46 MB / 0.576 GB, free: 100.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003367/0.7988, allocations: 61.7 kB / 0.5761 GB, free: 100 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.8003, allocations: 3.514 MB / 0.5795 GB, free: 96.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006736/0.801, allocations: 0.8345 MB / 0.5804 GB, free: 95.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/0.8023, allocations: 1.344 MB / 0.5817 GB, free: 94.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.033e-05/0.8024, allocations: 305.1 kB / 0.582 GB, free: 94.04 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002723/0.8051, allocations: 2.363 MB / 0.5843 GB, free: 91.68 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004151/0.8093, allocations: 6.167 MB / 0.5903 GB, free: 83.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007859/0.8172, allocations: 9.179 MB / 0.5992 GB, free: 72.61 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.038e-05/0.8173, allocations: 36 kB / 0.5993 GB, free: 72.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01529/0.8326, allocations: 9.557 MB / 0.6086 GB, free: 63.01 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.404e-05/0.8327, allocations: 61 kB / 0.6087 GB, free: 62.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001242/0.8328, allocations: 136 kB / 0.6088 GB, free: 62.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003843/0.8367, allocations: 1.374 MB / 0.6101 GB, free: 61.44 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004214/0.8409, allocations: 1.474 MB / 0.6116 GB, free: 59.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/0.8512, allocations: 8.477 MB / 0.6199 GB, free: 51.35 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004869/0.8561, allocations: 351.4 kB / 0.6202 GB, free: 51.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008297/0.857, allocations: 388 kB / 0.6206 GB, free: 50.63 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003378/0.8604, allocations: 2.497 MB / 0.623 GB, free: 48.12 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006866/0.8611, allocations: 398.8 kB / 0.6234 GB, free: 47.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007333/0.8684, allocations: 4.137 MB / 0.6274 GB, free: 43.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.248e-05/0.8685, allocations: 20 kB / 0.6274 GB, free: 43.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.8685, allocations: 8 kB / 0.6275 GB, free: 43.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-05/0.8685, allocations: 11.97 kB / 0.6275 GB, free: 43.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01664/0.8852, allocations: 10.13 MB / 0.6374 GB, free: 33.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/0.8852, allocations: 8.594 kB / 0.6374 GB, free: 33.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/0.8867, allocations: 323.5 kB / 0.6377 GB, free: 32.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003515/0.8902, allocations: 1.152 MB / 0.6388 GB, free: 31.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002506/0.8905, allocations: 48 kB / 0.6388 GB, free: 31.78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008495/0.899, allocations: 7.155 MB / 0.6458 GB, free: 24.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.899, allocations: 11.47 kB / 0.6458 GB, free: 24.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009806/0.9088, allocations: 6.911 MB / 0.6526 GB, free: 17.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.9099, allocations: 455.8 kB / 0.653 GB, free: 17.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004826/0.9104, allocations: 36 kB / 0.6531 GB, free: 16.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/0.9123, allocations: 115.8 kB / 0.6532 GB, free: 16.86 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/0.9126, allocations: 141.1 kB / 0.6533 GB, free: 16.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.9127, allocations: 63.98 kB / 0.6534 GB, free: 16.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003297/0.916, allocations: 2.802 MB / 0.6561 GB, free: 13.86 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.916, allocations: 0 / 0.6561 GB, free: 13.86 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004825/0.9209, allocations: 1.207 MB / 0.6573 GB, free: 12.66 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005368/0.9214, allocations: 220.6 kB / 0.6575 GB, free: 12.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007233/0.9287, allocations: 5.773 MB / 0.6631 GB, free: 6.684 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.9287, allocations: 4 kB / 0.6631 GB, free: 6.68 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002287/0.931, allocations: 1.887 MB / 0.665 GB, free: 4.785 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003073/0.9341, allocations: 0.5398 MB / 0.6655 GB, free: 4.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01892/0.953, allocations: 11.54 MB / 0.6768 GB, free: 8.617 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004461/0.9575, allocations: 3.843 MB / 0.6805 GB, free: 4.738 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001226/0.9588, allocations: 315.4 kB / 0.6808 GB, free: 4.43 MB / 478.1 MB Notification: Performance of SimCode: time 7.41e-07/0.9588, allocations: 0 / 0.6808 GB, free: 4.43 MB / 478.1 MB Notification: Performance of Templates: time 0.3193/1.278, allocations: 90.69 MB / 0.7694 GB, free: 145.9 MB / 0.5137 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches