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.001062/0.001062, allocations: 112.3 kB / 18.41 MB, free: 4.691 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.001005/0.001005, allocations: 186.2 kB / 19.34 MB, free: 3.766 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.237/1.237, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001183/0.001183, allocations: 43.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07056/0.07176, allocations: 46.62 MB / 375.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1581/0.2299, allocations: 16.02 MB / 391.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009078/0.239, allocations: 5.145 MB / 397 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00262/0.2416, allocations: 112.9 kB / 397.1 MB, free: 488 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007986/0.2496, allocations: 4.447 MB / 401.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006415/0.2561, allocations: 2.624 MB / 404.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002864/0.259, allocations: 1.158 MB / 405.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.2693, allocations: 7.503 MB / 412.8 MB, free: 8.328 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006161/0.2754, allocations: 5.337 MB / 418.2 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003806/0.2793, allocations: 2.484 MB / 420.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004527/0.2838, allocations: 3.396 MB / 424.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001325/0.2851, allocations: 0.5039 MB / 424.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002965/0.2881, allocations: 1.49 MB / 426 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.2905, allocations: 3.004 MB / 429 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002829/0.2933, allocations: 3.364 MB / 432.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008737/0.3021, allocations: 10.4 MB / 442.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3021, allocations: 0 / 442.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3021, allocations: 4 kB / 442.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.571e-05/0.3022, allocations: 0 / 442.8 MB, free: 12.39 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.01269/0.3149, allocations: 7.825 MB / 450.6 MB, free: 4.469 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.315, allocations: 8.031 kB / 450.7 MB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01343/0.3284, allocations: 3.226 MB / 453.9 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008253/0.3367, allocations: 5.011 MB / 458.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.3369, allocations: 337.2 kB / 459.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007854/0.3377, allocations: 475.6 kB / 459.7 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02039/0.3581, allocations: 14.56 MB / 474.3 MB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000155/0.3583, allocations: 71.47 kB / 474.3 MB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005206/0.3588, allocations: 215.8 kB / 474.5 MB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00501/0.3638, allocations: 2.836 MB / 477.4 MB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02204/0.3859, allocations: 13.21 MB / 490.6 MB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06061/0.4465, allocations: 58.37 MB / 0.5361 GB, free: 15.58 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01729/0.4638, allocations: 7.741 MB / 0.5436 GB, free: 7.684 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005865/0.4697, allocations: 5.047 MB / 0.5486 GB, free: 2.617 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1722/0.6419, allocations: 12.81 MB / 0.5611 GB, free: 145.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/0.642, allocations: 71.44 kB / 0.5612 GB, free: 145.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 6.903e-06/0.642, allocations: 0 / 0.5612 GB, free: 145.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.833/2.475, allocations: 411.9 MB / 0.9634 GB, free: 132 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/2.475, allocations: 268.8 kB / 0.9636 GB, free: 131.7 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007106/2.482, allocations: 5.502 MB / 0.969 GB, free: 128.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001429/2.484, allocations: 109.7 kB / 0.9691 GB, free: 128.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001854/2.486, allocations: 4.09 MB / 0.9731 GB, free: 125.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002123/2.488, allocations: 2.105 MB / 0.9751 GB, free: 123.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003671/2.491, allocations: 2.187 MB / 0.9773 GB, free: 121 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.474e-05/2.491, allocations: 304.1 kB / 0.9776 GB, free: 120.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01147/2.503, allocations: 11.06 MB / 0.9884 GB, free: 109.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01331/2.516, allocations: 15.23 MB / 1.003 GB, free: 92.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02681/2.543, allocations: 27.46 MB / 1.03 GB, free: 63.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.757e-05/2.543, allocations: 40 kB / 1.03 GB, free: 63.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.4905/3.034, allocations: 141.1 MB / 1.168 GB, free: 101.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/3.034, allocations: 68 kB / 1.168 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000193/3.034, allocations: 136 kB / 1.168 GB, free: 101.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07528/3.109, allocations: 34.69 MB / 1.202 GB, free: 67.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004807/3.114, allocations: 1.564 MB / 1.203 GB, free: 65.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4267/3.541, allocations: 203.7 MB / 1.402 GB, free: 65.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01209/3.553, allocations: 1.717 MB / 1.404 GB, free: 64.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002027/3.555, allocations: 0.5392 MB / 1.405 GB, free: 63.52 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.005262/3.56, allocations: 3.101 MB / 1.408 GB, free: 60.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001624/3.562, allocations: 0.6059 MB / 1.408 GB, free: 60.37 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4756/4.038, allocations: 136.7 MB / 1.542 GB, free: 108.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000118/4.038, allocations: 32.83 kB / 1.542 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/4.038, allocations: 0 / 1.542 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006082/4.044, allocations: 3.047 MB / 1.545 GB, free: 107 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002314/4.046, allocations: 93.88 kB / 1.545 GB, free: 107 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007976/4.054, allocations: 1.478 MB / 1.546 GB, free: 105.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004036/4.058, allocations: 0.8092 MB / 1.547 GB, free: 104.8 MB / 0.4981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.07027/4.128, allocations: 42.8 MB / 1.589 GB, free: 66.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.03262/4.161, allocations: 31.36 MB / 1.619 GB, free: 35.05 MB / 0.4981 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.01088/4.172, allocations: 11.26 MB / 1.63 GB, free: 23.76 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004191/4.176, allocations: 3.503 MB / 1.634 GB, free: 20.28 MB / 0.4981 GB Notification: Performance of Backend: time 3.11e-07/4.176, allocations: 0 / 1.634 GB, free: 20.28 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.2132/4.389, allocations: 24.02 MB / 1.657 GB, free: 147.1 MB / 0.4981 GB Notification: Performance of SimCode: time 0.0273/4.417, allocations: 19.23 MB / 1.676 GB, free: 140.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.4259/4.843, allocations: 242.9 MB / 1.913 GB, free: 99.39 MB / 0.4981 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)