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.001365/0.001365, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001506/0.001506, allocations: 191 kB / 18.67 MB, free: 4.414 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.547/1.547, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001337/0.001337, allocations: 51.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09622, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2543/0.3505, allocations: 16.02 MB / 391.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.363, allocations: 5.14 MB / 396.3 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004455/0.3675, allocations: 111.9 kB / 396.4 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008901/0.3765, allocations: 4.447 MB / 400.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008426/0.3849, allocations: 2.542 MB / 403.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003338/0.3883, allocations: 1.165 MB / 404.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01523/0.4036, allocations: 7.499 MB / 412.1 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01101/0.4146, allocations: 5.34 MB / 417.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005936/0.4206, allocations: 2.492 MB / 419.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005615/0.4263, allocations: 3.388 MB / 423.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001975/0.4283, allocations: 0.5039 MB / 423.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004333/0.4326, allocations: 1.49 MB / 425.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004162/0.4368, allocations: 3 MB / 428.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005526/0.4424, allocations: 3.364 MB / 431.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01354/0.4559, allocations: 10.37 MB / 442 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.456, allocations: 0 / 442 MB, free: 12.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.456, allocations: 0 / 442 MB, free: 12.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004478/0.4565, allocations: 0 / 442 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.02314/0.4796, allocations: 7.633 MB / 449.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.4797, allocations: 8.031 kB / 449.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01543/0.4951, allocations: 3.182 MB / 452.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01214/0.5073, allocations: 4.989 MB / 457.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003222/0.5076, allocations: 337.2 kB / 458.2 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002044/0.5097, allocations: 463.6 kB / 458.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02968/0.5394, allocations: 14.58 MB / 473.2 MB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002492/0.5397, allocations: 75.36 kB / 473.3 MB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007141/0.5404, allocations: 207.8 kB / 473.5 MB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005426/0.5458, allocations: 2.832 MB / 476.3 MB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02892/0.5748, allocations: 13.22 MB / 489.5 MB, free: 11.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.079/0.6538, allocations: 58.28 MB / 0.535 GB, free: 16 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/0.6719, allocations: 7.734 MB / 0.5425 GB, free: 8.129 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006286/0.6782, allocations: 5.052 MB / 0.5474 GB, free: 3.059 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2282/0.9064, allocations: 12.8 MB / 0.5599 GB, free: 145.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/0.9065, allocations: 67.75 kB / 0.56 GB, free: 145.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 5.239e-06/0.9065, allocations: 1.594 kB / 0.56 GB, free: 145.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 2.173/3.08, allocations: 411.5 MB / 0.9619 GB, free: 132.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/3.08, allocations: 273.2 kB / 0.9621 GB, free: 132.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007589/3.088, allocations: 5.491 MB / 0.9675 GB, free: 128.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002175/3.09, allocations: 113.7 kB / 0.9676 GB, free: 128.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002309/3.092, allocations: 3.94 MB / 0.9715 GB, free: 125.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003329/3.095, allocations: 2.013 MB / 0.9734 GB, free: 123.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004431/3.1, allocations: 2.182 MB / 0.9755 GB, free: 121.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.394e-05/3.1, allocations: 301.1 kB / 0.9758 GB, free: 121.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01279/3.113, allocations: 11.06 MB / 0.9866 GB, free: 110 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01558/3.128, allocations: 15.24 MB / 1.002 GB, free: 92.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02994/3.158, allocations: 27.45 MB / 1.028 GB, free: 63.65 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001646/3.159, allocations: 40 kB / 1.028 GB, free: 63.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.6365/3.795, allocations: 141.1 MB / 1.166 GB, free: 118.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.557e-05/3.795, allocations: 68 kB / 1.166 GB, free: 118.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001068/3.795, allocations: 136 kB / 1.166 GB, free: 117.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07671/3.872, allocations: 34.69 MB / 1.2 GB, free: 84.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005019/3.877, allocations: 1.568 MB / 1.202 GB, free: 82.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5629/4.44, allocations: 203.6 MB / 1.401 GB, free: 65.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01468/4.455, allocations: 1.719 MB / 1.402 GB, free: 64.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002822/4.458, allocations: 0.5379 MB / 1.403 GB, free: 64.23 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.007537/4.465, allocations: 3.11 MB / 1.406 GB, free: 61.28 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002044/4.467, allocations: 0.5741 MB / 1.406 GB, free: 61.01 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6259/5.093, allocations: 136.7 MB / 1.54 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.13e-05/5.093, allocations: 60 kB / 1.54 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001759/5.093, allocations: 56.69 kB / 1.54 GB, free: 109.4 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001292/5.094, allocations: 31.84 kB / 1.54 GB, free: 109.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6868/5.78, allocations: 205.9 MB / 1.741 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.234e-05/5.78, allocations: 6.625 kB / 1.741 GB, free: 120.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/5.782, allocations: 336.7 kB / 1.741 GB, free: 119.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07111/5.853, allocations: 33.41 MB / 1.774 GB, free: 91.66 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002061/5.855, allocations: 104 kB / 1.774 GB, free: 91.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4595/6.315, allocations: 186.2 MB / 1.956 GB, free: 94.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/6.315, allocations: 11.66 kB / 1.956 GB, free: 94.97 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7151/7.03, allocations: 152.6 MB / 2.105 GB, free: 127.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009945/7.04, allocations: 3.009 MB / 2.108 GB, free: 127.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003654/7.044, allocations: 97.84 kB / 2.108 GB, free: 127.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01036/7.054, allocations: 1.482 MB / 2.109 GB, free: 126.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004374/7.059, allocations: 0.4939 MB / 2.11 GB, free: 125.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001535/7.06, allocations: 144 kB / 2.11 GB, free: 125.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00615/7.066, allocations: 3.503 MB / 2.113 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.6e-07/7.066, allocations: 0 / 2.113 GB, free: 123.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01513/7.081, allocations: 3.856 MB / 2.117 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.00192/7.083, allocations: 248.8 kB / 2.117 GB, free: 119.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.05764/7.141, allocations: 33.81 MB / 2.15 GB, free: 85.98 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.61e-05/7.141, allocations: 0 / 2.15 GB, free: 85.98 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04168/7.183, allocations: 20.54 MB / 2.171 GB, free: 65.48 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009933/7.193, allocations: 0.79 MB / 2.171 GB, free: 64.72 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0401/7.233, allocations: 27.16 MB / 2.198 GB, free: 37.56 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007575/7.241, allocations: 5.114 MB / 2.203 GB, free: 32.44 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005351/7.246, allocations: 2.058 MB / 2.205 GB, free: 30.42 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/7.247, allocations: 311.4 kB / 2.205 GB, free: 30.12 MB / 0.5137 GB Notification: Performance of SimCode: time 2.134e-06/7.247, allocations: 0 / 2.205 GB, free: 30.12 MB / 0.5137 GB Notification: Performance of Templates: time 0.8799/8.127, allocations: 282.1 MB / 2.481 GB, free: 129.8 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/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