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.001551/0.001551, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001613/0.001613, allocations: 189.1 kB / 19.33 MB, free: 3.758 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.484/1.484, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001384/0.001384, allocations: 51.92 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08404/0.08544, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2071/0.2926, allocations: 16.02 MB / 391.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01191/0.3046, allocations: 5.14 MB / 397 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004296/0.3089, allocations: 112.7 kB / 397.1 MB, free: 472 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009955/0.3189, allocations: 4.451 MB / 401.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009118/0.3281, allocations: 2.546 MB / 404.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00349/0.3316, allocations: 1.155 MB / 405.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.3449, allocations: 7.504 MB / 412.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009623/0.3546, allocations: 5.333 MB / 418.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006495/0.3611, allocations: 2.496 MB / 420.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006278/0.3674, allocations: 3.392 MB / 424 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002239/0.3697, allocations: 0.5039 MB / 424.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004438/0.3742, allocations: 1.49 MB / 426 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004475/0.3787, allocations: 2.996 MB / 429 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006663/0.3854, allocations: 3.368 MB / 432.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01458/0.4, allocations: 10.37 MB / 442.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.4001, allocations: 0 / 442.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4001, allocations: 0 / 442.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004314/0.4005, allocations: 4 kB / 442.7 MB, free: 12.48 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.02181/0.4223, allocations: 7.629 MB / 450.3 MB, free: 4.762 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4224, allocations: 11.97 kB / 450.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01608/0.4385, allocations: 3.186 MB / 453.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01241/0.4509, allocations: 4.977 MB / 458.5 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004161/0.4514, allocations: 345.2 kB / 458.8 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002217/0.4536, allocations: 471.5 kB / 459.3 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03074/0.4844, allocations: 14.56 MB / 473.9 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003572/0.4848, allocations: 71.36 kB / 473.9 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001683/0.4865, allocations: 211.8 kB / 474.1 MB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005781/0.4923, allocations: 2.832 MB / 477 MB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02749/0.5198, allocations: 13.22 MB / 490.2 MB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08906/0.6089, allocations: 58.28 MB / 0.5356 GB, free: 12 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02109/0.6301, allocations: 7.73 MB / 0.5432 GB, free: 8.129 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008493/0.6387, allocations: 5.059 MB / 0.5481 GB, free: 3.051 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2422/0.8809, allocations: 12.8 MB / 0.5606 GB, free: 145.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/0.881, allocations: 68.31 kB / 0.5607 GB, free: 145.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.703e-06/0.8811, allocations: 0 / 0.5607 GB, free: 145.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.421/3.302, allocations: 411.5 MB / 0.9625 GB, free: 132.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/3.302, allocations: 267.8 kB / 0.9628 GB, free: 132.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007729/3.31, allocations: 5.488 MB / 0.9681 GB, free: 128.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00205/3.312, allocations: 113.7 kB / 0.9683 GB, free: 128.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002342/3.314, allocations: 3.946 MB / 0.9721 GB, free: 125.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00295/3.317, allocations: 2.016 MB / 0.9741 GB, free: 123.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004564/3.322, allocations: 2.178 MB / 0.9762 GB, free: 121.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.415e-05/3.322, allocations: 304.8 kB / 0.9765 GB, free: 121.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01265/3.335, allocations: 11.06 MB / 0.9873 GB, free: 110 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01538/3.35, allocations: 15.25 MB / 1.002 GB, free: 92.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02945/3.379, allocations: 27.45 MB / 1.029 GB, free: 63.65 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/3.38, allocations: 36.88 kB / 1.029 GB, free: 63.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6082/3.988, allocations: 141.1 MB / 1.167 GB, free: 118.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.417e-05/3.988, allocations: 68 kB / 1.167 GB, free: 118 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/3.988, allocations: 139.6 kB / 1.167 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07516/4.063, allocations: 34.69 MB / 1.201 GB, free: 84.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004809/4.068, allocations: 1.572 MB / 1.202 GB, free: 82.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5172/4.585, allocations: 203.6 MB / 1.401 GB, free: 65.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01367/4.599, allocations: 1.721 MB / 1.403 GB, free: 64.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00269/4.602, allocations: 0.531 MB / 1.403 GB, free: 64.24 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.007503/4.609, allocations: 3.106 MB / 1.406 GB, free: 61.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002146/4.612, allocations: 0.5731 MB / 1.407 GB, free: 61.01 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.554/5.166, allocations: 136.7 MB / 1.54 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.51e-05/5.166, allocations: 60 kB / 1.541 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001406/5.166, allocations: 56 kB / 1.541 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/5.166, allocations: 31.83 kB / 1.541 GB, free: 109.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6018/5.768, allocations: 205.9 MB / 1.742 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-05/5.768, allocations: 8 kB / 1.742 GB, free: 120 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/5.769, allocations: 333.8 kB / 1.742 GB, free: 119.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06987/5.839, allocations: 33.41 MB / 1.775 GB, free: 91.59 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001797/5.841, allocations: 106 kB / 1.775 GB, free: 91.49 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4624/6.304, allocations: 186.2 MB / 1.957 GB, free: 95.24 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.956e-06/6.304, allocations: 11.19 kB / 1.957 GB, free: 95.23 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5821/6.886, allocations: 152.6 MB / 2.106 GB, free: 127.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006117/6.892, allocations: 3.008 MB / 2.109 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002637/6.895, allocations: 102.4 kB / 2.109 GB, free: 127.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009864/6.904, allocations: 1.485 MB / 2.11 GB, free: 126.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004062/6.908, allocations: 0.4977 MB / 2.111 GB, free: 125.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001341/6.91, allocations: 139.8 kB / 2.111 GB, free: 125.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00528/6.915, allocations: 3.501 MB / 2.114 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.1e-07/6.915, allocations: 0 / 2.114 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0144/6.93, allocations: 3.863 MB / 2.118 GB, free: 119.6 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.001968/6.932, allocations: 250 kB / 2.118 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05419/6.986, allocations: 33.8 MB / 2.151 GB, free: 85.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/6.986, allocations: 4 kB / 2.151 GB, free: 85.89 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.03864/7.024, allocations: 20.55 MB / 2.171 GB, free: 65.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007863/7.032, allocations: 0.7869 MB / 2.172 GB, free: 64.64 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03965/7.072, allocations: 27.74 MB / 2.199 GB, free: 36.89 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006632/7.079, allocations: 5.071 MB / 2.204 GB, free: 31.82 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/7.08, allocations: 360.1 kB / 2.204 GB, free: 31.47 MB / 0.5137 GB Notification: Performance of SimCode: time 8.21e-07/7.08, allocations: 0 / 2.204 GB, free: 31.47 MB / 0.5137 GB Notification: Performance of Templates: time 0.7807/7.861, allocations: 256.7 MB / 2.455 GB, free: 148.4 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