Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001731/0.001731, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002088/0.002088, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 63.23 kB / 307.6 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1037, allocations: 50.53 MB / 358.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2069/0.3106, allocations: 15.86 MB / 374 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.3212, allocations: 5.138 MB / 379.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002419/0.3236, allocations: 118.4 kB / 379.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007603/0.3313, allocations: 4.42 MB / 383.7 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00716/0.3385, allocations: 2.488 MB / 386.2 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002773/0.3413, allocations: 1.16 MB / 387.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01177/0.3531, allocations: 8.091 MB / 395.4 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006824/0.3599, allocations: 5.323 MB / 400.7 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005068/0.365, allocations: 2.452 MB / 403.2 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005184/0.3703, allocations: 3.35 MB / 406.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001396/0.3717, allocations: 0.5078 MB / 407.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00329/0.375, allocations: 1.49 MB / 408.5 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003146/0.3781, allocations: 2.931 MB / 411.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004713/0.3829, allocations: 3.327 MB / 414.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.3944, allocations: 10.01 MB / 424.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3944, allocations: 0 / 424.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3945, allocations: 0 / 424.8 MB, free: 8.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003283/0.3948, allocations: 0 / 424.8 MB, free: 8.711 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02053/0.4153, allocations: 7.633 MB / 432.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.4154, allocations: 12.02 kB / 432.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01514/0.4305, allocations: 3.296 MB / 435.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/0.4412, allocations: 4.637 MB / 440.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/0.4415, allocations: 341.2 kB / 440.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001636/0.4432, allocations: 471.5 kB / 441.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02962/0.4728, allocations: 14.56 MB / 455.8 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000311/0.4732, allocations: 71.28 kB / 455.8 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001532/0.4747, allocations: 223.8 kB / 456 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005674/0.4804, allocations: 2.832 MB / 458.9 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0268/0.5072, allocations: 13.21 MB / 472.1 MB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07851/0.5858, allocations: 58.51 MB / 0.5182 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01847/0.6043, allocations: 7.725 MB / 0.5257 GB, free: 4.355 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1955/0.7998, allocations: 5.042 MB / 0.5306 GB, free: 139.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02062/0.8204, allocations: 12.81 MB / 0.5431 GB, free: 134.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.437e-05/0.8205, allocations: 69.67 kB / 0.5432 GB, free: 134.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 5.901e-06/0.8205, allocations: 1.438 kB / 0.5432 GB, free: 134.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.006/2.827, allocations: 411.6 MB / 0.9452 GB, free: 88.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/2.827, allocations: 261.7 kB / 0.9454 GB, free: 87.76 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00602/2.833, allocations: 5.442 MB / 0.9507 GB, free: 82.51 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001563/2.834, allocations: 113.4 kB / 0.9508 GB, free: 82.39 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001751/2.836, allocations: 3.944 MB / 0.9547 GB, free: 79.14 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002589/2.839, allocations: 2.008 MB / 0.9566 GB, free: 77.14 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00405/2.843, allocations: 2.177 MB / 0.9588 GB, free: 74.96 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.869e-05/2.843, allocations: 305.1 kB / 0.9591 GB, free: 74.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01201/2.855, allocations: 11.06 MB / 0.9699 GB, free: 63.58 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01473/2.87, allocations: 15.24 MB / 0.9848 GB, free: 46.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02846/2.898, allocations: 27.45 MB / 1.012 GB, free: 17.17 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/2.898, allocations: 40 kB / 1.012 GB, free: 17.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.542/3.44, allocations: 141.1 MB / 1.149 GB, free: 41.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/3.44, allocations: 64 kB / 1.149 GB, free: 41.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001944/3.441, allocations: 140 kB / 1.15 GB, free: 41.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07699/3.518, allocations: 34.73 MB / 1.184 GB, free: 6.668 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00496/3.523, allocations: 1.579 MB / 1.185 GB, free: 5.086 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6307/4.153, allocations: 203.7 MB / 1.384 GB, free: 123.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01396/4.167, allocations: 1.72 MB / 1.386 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002644/4.17, allocations: 0.5403 MB / 1.386 GB, free: 123.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.006853/4.177, allocations: 3.096 MB / 1.389 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001952/4.179, allocations: 0.5739 MB / 1.39 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3185/4.497, allocations: 136.7 MB / 1.523 GB, free: 15.65 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-05/4.497, allocations: 62.66 kB / 1.523 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00018/4.498, allocations: 62.88 kB / 1.523 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001225/4.498, allocations: 23.91 kB / 1.523 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8826/5.38, allocations: 206.3 MB / 1.725 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.401e-05/5.381, allocations: 3.906 kB / 1.725 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/5.382, allocations: 336.2 kB / 1.725 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07595/5.458, allocations: 33.47 MB / 1.758 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002357/5.461, allocations: 102.4 kB / 1.758 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5031/5.964, allocations: 186.2 MB / 1.94 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/5.964, allocations: 8 kB / 1.94 GB, free: 109.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5442/6.508, allocations: 152.6 MB / 2.089 GB, free: 120.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/6.51, allocations: 0.6299 MB / 2.09 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003063/6.513, allocations: 105.4 kB / 2.09 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009966/6.523, allocations: 1.49 MB / 2.091 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004174/6.527, allocations: 495.7 kB / 2.092 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001437/6.528, allocations: 148.3 kB / 2.092 GB, free: 120.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006536/6.535, allocations: 3.464 MB / 2.095 GB, free: 119.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.81e-07/6.535, allocations: 0 / 2.095 GB, free: 119.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01457/6.55, allocations: 3.835 MB / 2.099 GB, free: 118.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001861/6.551, allocations: 246.7 kB / 2.099 GB, free: 118.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.06379/6.615, allocations: 38.88 MB / 2.137 GB, free: 85.45 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/6.615, allocations: 0 / 2.137 GB, free: 85.45 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03884/6.654, allocations: 20.56 MB / 2.157 GB, free: 64.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0072/6.661, allocations: 0.7795 MB / 2.158 GB, free: 64.15 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.042/6.703, allocations: 27.86 MB / 2.185 GB, free: 36.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007619/6.711, allocations: 5.057 MB / 2.19 GB, free: 31.23 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001343/6.712, allocations: 359.4 kB / 2.19 GB, free: 30.88 MB / 478.1 MB Notification: Performance of SimCode: time 7.41e-07/6.712, allocations: 0 / 2.19 GB, free: 30.88 MB / 478.1 MB Notification: Performance of Templates: time 0.7472/7.46, allocations: 255.3 MB / 2.44 GB, free: 142.8 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches