Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001328, allocations: 99.45 kB / 17.59 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 191.3 kB / 18.52 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 46.83 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1055, allocations: 49.45 MB / 350.7 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01648/0.122, allocations: 15.9 MB / 366.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2099/0.3319, allocations: 5.111 MB / 371.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003413/0.3354, allocations: 112.5 kB / 371.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009224/0.3446, allocations: 4.44 MB / 376.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007958/0.3527, allocations: 2.534 MB / 378.8 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003004/0.3557, allocations: 1.15 MB / 380 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.3674, allocations: 7.956 MB / 387.9 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006728/0.3741, allocations: 5.326 MB / 393.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004871/0.379, allocations: 2.464 MB / 395.7 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004597/0.3837, allocations: 3.362 MB / 399.1 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001389/0.3851, allocations: 0.5039 MB / 399.6 MB, free: 32 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004267/0.3894, allocations: 1.499 MB / 401.1 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003806/0.3932, allocations: 2.955 MB / 404 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005279/0.3985, allocations: 3.348 MB / 407.4 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.4103, allocations: 10.07 MB / 417.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4104, allocations: 0 / 417.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4104, allocations: 0 / 417.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003608/0.4107, allocations: 0 / 417.5 MB, free: 14.44 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.01985/0.4306, allocations: 7.601 MB / 425.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.4307, allocations: 11.97 kB / 425.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01563/0.4463, allocations: 3.182 MB / 428.3 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01111/0.4575, allocations: 4.721 MB / 433 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/0.4578, allocations: 338.9 kB / 433.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001694/0.4595, allocations: 462.9 kB / 433.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02785/0.4873, allocations: 14.56 MB / 448.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002469/0.4876, allocations: 71.42 kB / 448.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008365/0.4885, allocations: 214.3 kB / 448.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005761/0.4943, allocations: 2.829 MB / 451.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02829/0.5226, allocations: 13.22 MB / 464.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08041/0.603, allocations: 58.52 MB / 0.5109 GB, free: 2.832 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01884/0.6219, allocations: 7.735 MB / 0.5185 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0065/0.6284, allocations: 5.047 MB / 0.5234 GB, free: 5.891 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2063/0.8348, allocations: 12.8 MB / 0.5359 GB, free: 138.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.39e-05/0.8349, allocations: 73.08 kB / 0.536 GB, free: 138.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.063e-06/0.8349, allocations: 4.75 kB / 0.536 GB, free: 138.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.022/2.857, allocations: 411.4 MB / 0.9377 GB, free: 78.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/2.857, allocations: 261.7 kB / 0.938 GB, free: 78.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007428/2.865, allocations: 5.453 MB / 0.9433 GB, free: 73.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002202/2.867, allocations: 109.7 kB / 0.9434 GB, free: 73.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002359/2.869, allocations: 3.935 MB / 0.9473 GB, free: 69.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003088/2.872, allocations: 2.016 MB / 0.9492 GB, free: 67.81 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004862/2.877, allocations: 2.182 MB / 0.9514 GB, free: 65.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.515e-05/2.877, allocations: 305.1 kB / 0.9516 GB, free: 65.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01302/2.89, allocations: 11.06 MB / 0.9625 GB, free: 54.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01503/2.905, allocations: 15.24 MB / 0.9773 GB, free: 37.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03014/2.936, allocations: 27.45 MB / 1.004 GB, free: 7.836 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001669/2.936, allocations: 40 kB / 1.004 GB, free: 7.797 MB / 446.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5332/3.469, allocations: 141 MB / 1.142 GB, free: 45.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-05/3.469, allocations: 64 kB / 1.142 GB, free: 44.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00015/3.469, allocations: 140 kB / 1.142 GB, free: 44.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08001/3.549, allocations: 34.73 MB / 1.176 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005475/3.555, allocations: 1.568 MB / 1.178 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7004/4.255, allocations: 203.6 MB / 1.376 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01346/4.269, allocations: 1.713 MB / 1.378 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0025/4.271, allocations: 0.5362 MB / 1.379 GB, free: 109 MB / 462.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.007041/4.278, allocations: 3.098 MB / 1.382 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00216/4.281, allocations: 0.5753 MB / 1.382 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5213/4.802, allocations: 136.7 MB / 1.516 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001201/4.802, allocations: 56.88 kB / 1.516 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002194/4.802, allocations: 58.31 kB / 1.516 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001376/4.802, allocations: 26.61 kB / 1.516 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5719/5.374, allocations: 206.2 MB / 1.717 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.171e-05/5.374, allocations: 7.891 kB / 1.717 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/5.376, allocations: 335.4 kB / 1.717 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07408/5.45, allocations: 33.46 MB / 1.75 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002418/5.453, allocations: 99.98 kB / 1.75 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4714/5.924, allocations: 186.2 MB / 1.932 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/5.924, allocations: 6.188 kB / 1.932 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5572/6.481, allocations: 152.5 MB / 2.081 GB, free: 118.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001818/6.483, allocations: 0.6277 MB / 2.082 GB, free: 118.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003069/6.486, allocations: 97.84 kB / 2.082 GB, free: 118.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01021/6.496, allocations: 1.481 MB / 2.083 GB, free: 118.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004413/6.501, allocations: 0.4887 MB / 2.084 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001611/6.502, allocations: 144.3 kB / 2.084 GB, free: 117.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007734/6.51, allocations: 3.466 MB / 2.087 GB, free: 117.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.52e-07/6.51, allocations: 0 / 2.087 GB, free: 117.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01589/6.526, allocations: 3.86 MB / 2.091 GB, free: 115 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.001893/6.528, allocations: 250.2 kB / 2.091 GB, free: 114.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0655/6.594, allocations: 38.87 MB / 2.129 GB, free: 76.88 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/6.594, allocations: 0 / 2.129 GB, free: 76.88 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0399/6.634, allocations: 20.54 MB / 2.149 GB, free: 56.37 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008838/6.642, allocations: 0.7783 MB / 2.15 GB, free: 55.61 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04323/6.686, allocations: 27.87 MB / 2.177 GB, free: 27.76 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007356/6.693, allocations: 5.072 MB / 2.182 GB, free: 22.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/6.694, allocations: 351.4 kB / 2.183 GB, free: 22.31 MB / 478.1 MB Notification: Performance of SimCode: time 1.313e-06/6.694, allocations: 0 / 2.183 GB, free: 22.31 MB / 478.1 MB Notification: Performance of Templates: time 0.7794/7.474, allocations: 255.6 MB / 2.432 GB, free: 111.1 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches