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.0007734/0.0007734, allocations: 96.69 kB / 17.31 MB, free: 5.582 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.0008159/0.0008159, allocations: 182.9 kB / 18.21 MB, free: 5.191 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.115/1.115, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001988/0.0001989, allocations: 7.938 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06943/0.06964, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1707/0.2404, allocations: 73.51 MB / 426 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0248/0.2652, allocations: 14.88 MB / 440.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008697/0.2739, allocations: 335.1 kB / 441.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.2752, allocations: 0.5984 MB / 441.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004038/0.2792, allocations: 2.375 MB / 444.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.2808, allocations: 1.061 MB / 445.2 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008878/0.2897, allocations: 11.18 MB / 456.4 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007508/0.2972, allocations: 7.374 MB / 463.8 MB, free: 4.711 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001837/0.299, allocations: 1.863 MB / 465.7 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002859/0.3019, allocations: 3.173 MB / 468.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003506/0.3023, allocations: 220 kB / 469.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001698/0.304, allocations: 1.268 MB / 470.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001715/0.3057, allocations: 2.637 MB / 473 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.3077, allocations: 2.971 MB / 475.9 MB, free: 8.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005258/0.3129, allocations: 7.934 MB / 483.9 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3129, allocations: 3.938 kB / 483.9 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3129, allocations: 0 / 483.9 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.171e-05/0.313, allocations: 0 / 483.9 MB, free: 0.5742 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.0101/0.3231, allocations: 6.3 MB / 490.2 MB, free: 10.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3232, allocations: 12.03 kB / 490.2 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01267/0.3358, allocations: 3.245 MB / 493.4 MB, free: 6.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006674/0.3425, allocations: 4.719 MB / 498.1 MB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.3427, allocations: 341.3 kB / 498.5 MB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007052/0.3434, allocations: 471.5 kB / 498.9 MB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01803/0.3615, allocations: 14.59 MB / 0.5015 GB, free: 1.801 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001261/0.3616, allocations: 71.28 kB / 0.5016 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004713/0.3621, allocations: 215.8 kB / 0.5018 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004614/0.3667, allocations: 2.836 MB / 0.5045 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01926/0.386, allocations: 13.24 MB / 0.5175 GB, free: 1.406 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1881/0.5741, allocations: 58.5 MB / 0.5746 GB, free: 110 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01384/0.588, allocations: 7.752 MB / 0.5822 GB, free: 107.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003967/0.5919, allocations: 5.044 MB / 0.5871 GB, free: 105.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01224/0.6042, allocations: 12.81 MB / 0.5996 GB, free: 97.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.6042, allocations: 64.23 kB / 0.5997 GB, free: 97.67 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 4.148e-06/0.6043, allocations: 0 / 0.5997 GB, free: 97.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 1.714/2.318, allocations: 407.2 MB / 0.9973 GB, free: 56.62 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.414e-05/2.318, allocations: 265.5 kB / 0.9976 GB, free: 56.32 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005414/2.323, allocations: 5.452 MB / 1.003 GB, free: 50.89 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001057/2.324, allocations: 109.7 kB / 1.003 GB, free: 50.78 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/2.326, allocations: 3.946 MB / 1.007 GB, free: 46.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001514/2.327, allocations: 2.016 MB / 1.009 GB, free: 44.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001268/2.329, allocations: 0.8253 MB / 1.01 GB, free: 44 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 2.961e-05/2.329, allocations: 305.1 kB / 1.01 GB, free: 43.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0102/2.339, allocations: 11.06 MB / 1.021 GB, free: 32.63 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1502/2.489, allocations: 15.23 MB / 1.036 GB, free: 141.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02834/2.518, allocations: 27.45 MB / 1.062 GB, free: 127.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001746/2.518, allocations: 38.25 kB / 1.062 GB, free: 127.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4419/2.96, allocations: 141.1 MB / 1.2 GB, free: 132.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002128/2.96, allocations: 66.33 kB / 1.2 GB, free: 132.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002657/2.96, allocations: 138.5 kB / 1.2 GB, free: 132.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07181/3.032, allocations: 34.77 MB / 1.234 GB, free: 126.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00408/3.036, allocations: 1.563 MB / 1.236 GB, free: 126.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3547/3.391, allocations: 190.7 MB / 1.422 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0109/3.402, allocations: 1.722 MB / 1.424 GB, free: 105.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008835/3.403, allocations: 0.5399 MB / 1.424 GB, free: 105.1 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.004238/3.407, allocations: 3.084 MB / 1.427 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/3.408, allocations: 0.5694 MB / 1.428 GB, free: 102.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4345/3.843, allocations: 136.7 MB / 1.561 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-05/3.843, allocations: 60.84 kB / 1.561 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001182/3.843, allocations: 60.38 kB / 1.562 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.511e-05/3.843, allocations: 27.89 kB / 1.562 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.481/4.324, allocations: 206.2 MB / 1.763 GB, free: 122.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.902e-05/4.324, allocations: 7.812 kB / 1.763 GB, free: 122.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/4.325, allocations: 332.8 kB / 1.763 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06467/4.39, allocations: 33.92 MB / 1.796 GB, free: 94.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008496/4.391, allocations: 101.2 kB / 1.796 GB, free: 94.15 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3371/4.728, allocations: 173.5 MB / 1.966 GB, free: 91.13 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/4.728, allocations: 8 kB / 1.966 GB, free: 91.12 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.454/5.182, allocations: 152.5 MB / 2.115 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001311/5.183, allocations: 0.6409 MB / 2.116 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001913/5.185, allocations: 95 kB / 2.116 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007754/5.193, allocations: 1.49 MB / 2.117 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002614/5.196, allocations: 0.4929 MB / 2.118 GB, free: 104.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005987/5.196, allocations: 142.4 kB / 2.118 GB, free: 104.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003429/5.2, allocations: 3.466 MB / 2.121 GB, free: 101.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/5.2, allocations: 0 / 2.121 GB, free: 101.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008997/5.209, allocations: 3.854 MB / 2.125 GB, free: 97.59 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.0009699/5.21, allocations: 251.3 kB / 2.125 GB, free: 97.36 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0442/5.254, allocations: 33.72 MB / 2.158 GB, free: 63.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/5.254, allocations: 0 / 2.158 GB, free: 63.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03184/5.286, allocations: 20.52 MB / 2.178 GB, free: 43.31 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008017/5.294, allocations: 0.7412 MB / 2.179 GB, free: 42.58 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1713/5.465, allocations: 31.01 MB / 2.209 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00527/5.47, allocations: 5.067 MB / 2.214 GB, free: 131.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/5.471, allocations: 355.3 kB / 2.214 GB, free: 131.6 MB / 478.1 MB Notification: Performance of SimCode: time 5.61e-07/5.471, allocations: 3.438 kB / 2.214 GB, free: 131.6 MB / 478.1 MB Notification: Performance of Templates: time 0.3463/5.818, allocations: 254.3 MB / 2.463 GB, free: 79.79 MB / 478.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