Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001393/0.001393, allocations: 107.9 kB / 18.37 MB, free: 4.586 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.001409/0.001409, allocations: 188.5 kB / 19.3 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 51.91 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.09817, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2165/0.3147, allocations: 16.01 MB / 391.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01247/0.3272, allocations: 5.147 MB / 396.9 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004759/0.332, allocations: 112.7 kB / 397 MB, free: 468 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0097/0.3418, allocations: 4.451 MB / 401.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009623/0.3515, allocations: 2.538 MB / 404 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003511/0.355, allocations: 1.163 MB / 405.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01329/0.3683, allocations: 7.503 MB / 412.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009483/0.3779, allocations: 5.338 MB / 418 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005871/0.3838, allocations: 2.488 MB / 420.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005833/0.3896, allocations: 3.384 MB / 423.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002238/0.3919, allocations: 0.5039 MB / 424.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004485/0.3964, allocations: 1.483 MB / 425.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004356/0.4008, allocations: 2.969 MB / 428.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008443/0.4093, allocations: 3.356 MB / 432.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0152/0.4245, allocations: 10.36 MB / 442.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4246, allocations: 0 / 442.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4246, allocations: 0 / 442.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003909/0.425, allocations: 4 kB / 442.6 MB, free: 12.54 MB / 366.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.02031/0.4453, allocations: 7.633 MB / 450.2 MB, free: 4.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.4453, allocations: 12.03 kB / 450.2 MB, free: 4.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01523/0.4606, allocations: 3.186 MB / 453.4 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0113/0.4719, allocations: 4.989 MB / 458.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002927/0.4723, allocations: 333.3 kB / 458.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001916/0.4742, allocations: 471.5 kB / 459.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02792/0.5021, allocations: 14.56 MB / 473.7 MB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002615/0.5024, allocations: 71.42 kB / 473.8 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/0.5035, allocations: 215.8 kB / 474 MB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005343/0.5089, allocations: 2.836 MB / 476.9 MB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/0.5358, allocations: 13.22 MB / 490.1 MB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07847/0.6144, allocations: 58.28 MB / 0.5355 GB, free: 72 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01855/0.633, allocations: 7.723 MB / 0.5431 GB, free: 8.191 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006693/0.6397, allocations: 5.055 MB / 0.548 GB, free: 3.121 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2618/0.9015, allocations: 12.8 MB / 0.5605 GB, free: 145.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/0.9016, allocations: 73.12 kB / 0.5606 GB, free: 145.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 5.12e-06/0.9016, allocations: 0.5938 kB / 0.5606 GB, free: 145.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.098/3, allocations: 411.5 MB / 0.9624 GB, free: 132.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/3, allocations: 266.7 kB / 0.9627 GB, free: 132 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006913/3.007, allocations: 5.492 MB / 0.968 GB, free: 129 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001718/3.009, allocations: 113.7 kB / 0.9682 GB, free: 128.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001876/3.011, allocations: 3.944 MB / 0.972 GB, free: 125.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002312/3.013, allocations: 2.012 MB / 0.974 GB, free: 123.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003785/3.017, allocations: 2.178 MB / 0.9761 GB, free: 121.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.958e-05/3.017, allocations: 308.9 kB / 0.9764 GB, free: 121.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01651/3.034, allocations: 11.06 MB / 0.9872 GB, free: 110.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02376/3.057, allocations: 15.24 MB / 1.002 GB, free: 93 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04394/3.101, allocations: 27.45 MB / 1.029 GB, free: 63.71 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001663/3.102, allocations: 36 kB / 1.029 GB, free: 63.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.559/3.661, allocations: 141.1 MB / 1.167 GB, free: 118.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/3.661, allocations: 64 kB / 1.167 GB, free: 118.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001385/3.661, allocations: 143.2 kB / 1.167 GB, free: 118 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07738/3.738, allocations: 34.69 MB / 1.201 GB, free: 84.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005263/3.743, allocations: 1.567 MB / 1.202 GB, free: 82.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5281/4.272, allocations: 203.6 MB / 1.401 GB, free: 65.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01386/4.286, allocations: 1.723 MB / 1.403 GB, free: 64.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003092/4.289, allocations: 0.5388 MB / 1.403 GB, free: 64.3 MB / 0.4981 GB 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.008453/4.297, allocations: 3.093 MB / 1.406 GB, free: 61.34 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002704/4.3, allocations: 0.5747 MB / 1.407 GB, free: 61.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5718/4.872, allocations: 136.7 MB / 1.54 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001281/4.872, allocations: 62.22 kB / 1.54 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002393/4.872, allocations: 56 kB / 1.54 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001698/4.872, allocations: 35.83 kB / 1.54 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6331/5.505, allocations: 205.9 MB / 1.742 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.038e-05/5.506, allocations: 6.312 kB / 1.742 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/5.507, allocations: 334.6 kB / 1.742 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07141/5.579, allocations: 33.42 MB / 1.775 GB, free: 91.68 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001889/5.581, allocations: 103.6 kB / 1.775 GB, free: 91.58 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5757/6.156, allocations: 186.2 MB / 1.957 GB, free: 95.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/6.156, allocations: 7.844 kB / 1.957 GB, free: 95.34 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5762/6.733, allocations: 152.6 MB / 2.105 GB, free: 127.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006112/6.739, allocations: 3.012 MB / 2.108 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002473/6.741, allocations: 97.59 kB / 2.109 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009758/6.751, allocations: 1.484 MB / 2.11 GB, free: 126.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0041/6.755, allocations: 0.4946 MB / 2.11 GB, free: 125.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001134/6.756, allocations: 147.5 kB / 2.111 GB, free: 125.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005269/6.762, allocations: 3.494 MB / 2.114 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.71e-07/6.762, allocations: 1.156 kB / 2.114 GB, free: 123.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01483/6.776, allocations: 3.865 MB / 2.118 GB, free: 119.7 MB / 0.5137 GB 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.001878/6.778, allocations: 244.6 kB / 2.118 GB, free: 119.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05716/6.835, allocations: 33.8 MB / 2.151 GB, free: 86.02 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.494e-05/6.836, allocations: 4 kB / 2.151 GB, free: 86.01 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03924/6.875, allocations: 20.56 MB / 2.171 GB, free: 65.49 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009744/6.885, allocations: 0.7867 MB / 2.172 GB, free: 64.73 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04214/6.927, allocations: 27.73 MB / 2.199 GB, free: 36.98 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007413/6.934, allocations: 5.078 MB / 2.204 GB, free: 31.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/6.936, allocations: 350.7 kB / 2.204 GB, free: 31.56 MB / 0.5137 GB Notification: Performance of SimCode: time 8.01e-07/6.936, allocations: 0 / 2.204 GB, free: 31.56 MB / 0.5137 GB Notification: Performance of Templates: time 0.855/7.791, allocations: 255.9 MB / 2.454 GB, free: 148.3 MB / 0.5294 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches