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.001239/0.001239, allocations: 105.2 kB / 17.74 MB, free: 5.312 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.0009985/0.0009985, allocations: 188.3 kB / 18.67 MB, free: 4.395 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.268/1.268, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009572/0.0009572, allocations: 55.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2018, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01527/0.2171, allocations: 15.91 MB / 417.3 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008944/0.2261, allocations: 5.111 MB / 422.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001916/0.228, allocations: 111.6 kB / 422.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007421/0.2355, allocations: 4.45 MB / 427 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005151/0.2406, allocations: 2.603 MB / 429.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00207/0.2427, allocations: 1.151 MB / 430.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008915/0.2517, allocations: 7.967 MB / 438.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005669/0.2573, allocations: 5.323 MB / 444 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00334/0.2607, allocations: 2.465 MB / 446.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004413/0.2651, allocations: 3.365 MB / 449.9 MB, free: 8.164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001256/0.2664, allocations: 0.5039 MB / 450.4 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002824/0.2692, allocations: 1.506 MB / 451.9 MB, free: 6.152 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002783/0.272, allocations: 2.989 MB / 454.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002834/0.2749, allocations: 3.352 MB / 458.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008236/0.2831, allocations: 10.35 MB / 468.6 MB, free: 5.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2831, allocations: 4 kB / 468.6 MB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2831, allocations: 4 kB / 468.6 MB, free: 5.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.809e-05/0.2832, allocations: 0 / 468.6 MB, free: 5.395 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.01334/0.2966, allocations: 7.605 MB / 476.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2966, allocations: 8.031 kB / 476.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0146/0.3112, allocations: 3.182 MB / 479.4 MB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008908/0.3201, allocations: 4.832 MB / 484.2 MB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002165/0.3204, allocations: 337.1 kB / 484.5 MB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007625/0.3211, allocations: 459.6 kB / 485 MB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02054/0.3417, allocations: 14.57 MB / 499.6 MB, free: 5.305 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001466/0.3418, allocations: 79.33 kB / 499.6 MB, free: 5.227 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005567/0.3424, allocations: 207.8 kB / 499.8 MB, free: 5.023 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005272/0.3477, allocations: 2.836 MB / 0.4909 GB, free: 2.184 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02199/0.3697, allocations: 13.22 MB / 0.5038 GB, free: 4.934 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2484/0.6181, allocations: 58.24 MB / 0.5607 GB, free: 93.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01555/0.6337, allocations: 7.731 MB / 0.5682 GB, free: 91.78 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004254/0.638, allocations: 5.051 MB / 0.5732 GB, free: 89.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01439/0.6524, allocations: 12.8 MB / 0.5857 GB, free: 81.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.6524, allocations: 68.17 kB / 0.5857 GB, free: 81.29 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 4.729e-06/0.6524, allocations: 3.844 kB / 0.5857 GB, free: 81.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 1.995/2.647, allocations: 411.4 MB / 0.9875 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.526e-05/2.647, allocations: 265.7 kB / 0.9878 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005568/2.653, allocations: 5.455 MB / 0.9931 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001357/2.654, allocations: 109.7 kB / 0.9932 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001482/2.656, allocations: 3.936 MB / 0.9971 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001639/2.658, allocations: 2.016 MB / 0.999 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003529/2.661, allocations: 2.178 MB / 1.001 GB, free: 152 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.148e-05/2.661, allocations: 305.1 kB / 1.001 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01101/2.672, allocations: 11.06 MB / 1.012 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01221/2.684, allocations: 15.24 MB / 1.027 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02494/2.709, allocations: 27.45 MB / 1.054 GB, free: 94.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-05/2.709, allocations: 40 kB / 1.054 GB, free: 94.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5062/3.216, allocations: 141.1 MB / 1.192 GB, free: 141.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.526e-05/3.216, allocations: 64 kB / 1.192 GB, free: 141.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.171e-05/3.216, allocations: 140 kB / 1.192 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07447/3.29, allocations: 34.69 MB / 1.226 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004372/3.295, allocations: 1.565 MB / 1.227 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4258/3.72, allocations: 203.6 MB / 1.426 GB, free: 97.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0121/3.733, allocations: 1.72 MB / 1.428 GB, free: 96.17 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/3.734, allocations: 0.5345 MB / 1.428 GB, free: 95.64 MB / 0.5294 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.004528/3.738, allocations: 3.096 MB / 1.431 GB, free: 92.68 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/3.74, allocations: 0.5731 MB / 1.432 GB, free: 92.38 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4966/4.236, allocations: 136.7 MB / 1.565 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001129/4.236, allocations: 33.48 kB / 1.565 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/4.236, allocations: 2.188 kB / 1.565 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/4.238, allocations: 0.6221 MB / 1.566 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002481/4.24, allocations: 87.03 kB / 1.566 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009423/4.25, allocations: 1.483 MB / 1.568 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00401/4.254, allocations: 0.8179 MB / 1.568 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.07338/4.327, allocations: 42.77 MB / 1.61 GB, free: 108.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.03201/4.359, allocations: 31.32 MB / 1.641 GB, free: 77.26 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0103/4.369, allocations: 11.25 MB / 1.652 GB, free: 65.97 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003872/4.373, allocations: 3.467 MB / 1.655 GB, free: 62.52 MB / 0.5294 GB Notification: Performance of Backend: time 3.51e-07/4.373, allocations: 0 / 1.655 GB, free: 62.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.04299/4.416, allocations: 23.99 MB / 1.678 GB, free: 38.51 MB / 0.5294 GB Notification: Performance of SimCode: time 0.01923/4.436, allocations: 18.85 MB / 1.697 GB, free: 19.66 MB / 0.5294 GB Notification: Performance of Templates: time 0.6032/5.039, allocations: 242.7 MB / 1.934 GB, free: 155.9 MB / 0.5294 GB 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)