Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 109.7 kB / 17.06 MB, free: 5.996 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.001199/0.0012, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.491/1.491, allocations: 205.1 MB / 223.9 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.001308/0.001308, allocations: 55.94 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1075, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.26/0.3675, allocations: 18.58 MB / 393.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.3841, allocations: 6.145 MB / 399.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005866/0.39, allocations: 142.9 kB / 399.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.013/0.4031, allocations: 6.286 MB / 405.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009937/0.413, allocations: 2.845 MB / 408.5 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006095/0.4192, allocations: 2.285 MB / 410.8 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01676/0.436, allocations: 8.838 MB / 419.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0131/0.4491, allocations: 8.427 MB / 428 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007625/0.4568, allocations: 3.202 MB / 431.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007563/0.4644, allocations: 4.187 MB / 435.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002498/0.4669, allocations: 0.7148 MB / 436.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005076/0.472, allocations: 1.9 MB / 438 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004896/0.477, allocations: 3.827 MB / 441.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007832/0.4848, allocations: 4.158 MB / 446 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01813/0.503, allocations: 13.29 MB / 459.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.503, allocations: 4 kB / 459.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.503, allocations: 0 / 459.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005083/0.5036, allocations: 0 / 459.3 MB, free: 10.45 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02591/0.5295, allocations: 9.161 MB / 468.5 MB, free: 1.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.5295, allocations: 8.031 kB / 468.5 MB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04719/0.5768, allocations: 4.892 MB / 473.4 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01765/0.5945, allocations: 6.742 MB / 480.1 MB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004444/0.595, allocations: 439.7 kB / 480.5 MB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002815/0.5978, allocations: 0.5821 MB / 481.1 MB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04085/0.6387, allocations: 17.06 MB / 498.2 MB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005635/0.6393, allocations: 87.36 kB / 498.3 MB, free: 2.363 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002757/0.6421, allocations: 263.8 kB / 498.5 MB, free: 2.105 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005117/0.6472, allocations: 2.663 MB / 0.4894 GB, free: 15.44 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0353/0.6825, allocations: 14.78 MB / 0.5039 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5661/1.249, allocations: 64.45 MB / 0.5668 GB, free: 109.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02697/1.276, allocations: 8.777 MB / 0.5754 GB, free: 108.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006565/1.282, allocations: 5.069 MB / 0.5803 GB, free: 107.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02584/1.308, allocations: 18.66 MB / 0.5985 GB, free: 98.98 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/1.308, allocations: 70.77 kB / 0.5986 GB, free: 98.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 5.38e-06/1.308, allocations: 0 / 0.5986 GB, free: 98.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2473/1.556, allocations: 74.45 MB / 0.6713 GB, free: 32.11 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/1.556, allocations: 384 kB / 0.6717 GB, free: 31.66 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009398/1.565, allocations: 6.43 MB / 0.678 GB, free: 25.33 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001262/1.566, allocations: 81.7 kB / 0.678 GB, free: 25.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00364/1.57, allocations: 4.944 MB / 0.6829 GB, free: 20.66 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002758/1.573, allocations: 1.438 MB / 0.6843 GB, free: 19.24 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003584/1.576, allocations: 1.991 MB / 0.6862 GB, free: 17.24 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.394e-05/1.577, allocations: 305.1 kB / 0.6865 GB, free: 16.94 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00735/1.584, allocations: 5.992 MB / 0.6924 GB, free: 10.94 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01115/1.595, allocations: 11.02 MB / 0.7031 GB, free: 13.55 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0246/1.62, allocations: 17.97 MB / 0.7207 GB, free: 9.207 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001938/1.62, allocations: 48 kB / 0.7207 GB, free: 9.16 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05279/1.673, allocations: 23.37 MB / 0.7435 GB, free: 1.746 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002636/1.673, allocations: 80 kB / 0.7436 GB, free: 1.668 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003848/1.674, allocations: 172 kB / 0.7438 GB, free: 1.5 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2879/1.961, allocations: 7.441 MB / 0.751 GB, free: 173.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008461/1.97, allocations: 2.188 MB / 0.7532 GB, free: 173.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04776/2.018, allocations: 38.11 MB / 0.7904 GB, free: 157.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009614/2.027, allocations: 0.7492 MB / 0.7911 GB, free: 157.4 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001761/2.029, allocations: 0.5253 MB / 0.7916 GB, free: 157.3 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.005716/2.035, allocations: 3.443 MB / 0.795 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001647/2.037, allocations: 0.6067 MB / 0.7956 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03108/2.068, allocations: 16.96 MB / 0.8122 GB, free: 141.2 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.533e-05/2.068, allocations: 51.94 kB / 0.8122 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.443e-05/2.068, allocations: 16 kB / 0.8122 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.112e-05/2.068, allocations: 19.92 kB / 0.8122 GB, free: 141.1 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04775/2.116, allocations: 32.06 MB / 0.8435 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-05/2.116, allocations: 4 kB / 0.8436 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003314/2.119, allocations: 0.6037 MB / 0.8441 GB, free: 108.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02059/2.14, allocations: 7.018 MB / 0.851 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001122/2.141, allocations: 60 kB / 0.8511 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04019/2.181, allocations: 36.32 MB / 0.8865 GB, free: 64.71 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/2.181, allocations: 4 kB / 0.8865 GB, free: 64.71 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03885/2.22, allocations: 24.64 MB / 0.9106 GB, free: 40.05 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005139/2.225, allocations: 1.692 MB / 0.9122 GB, free: 38.34 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002435/2.228, allocations: 60 kB / 0.9123 GB, free: 38.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005755/2.233, allocations: 448.5 kB / 0.9127 GB, free: 37.85 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001651/2.235, allocations: 246.6 kB / 0.913 GB, free: 37.61 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007535/2.236, allocations: 98.2 kB / 0.9131 GB, free: 37.51 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007548/2.243, allocations: 4.084 MB / 0.917 GB, free: 33.43 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.9e-07/2.243, allocations: 0 / 0.917 GB, free: 33.43 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01396/2.257, allocations: 2.298 MB / 0.9193 GB, free: 31.15 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002438/2.26, allocations: 272.2 kB / 0.9195 GB, free: 30.89 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02402/2.284, allocations: 14.91 MB / 0.9341 GB, free: 15.96 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.524e-05/2.284, allocations: 0 / 0.9341 GB, free: 15.96 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.2481/2.532, allocations: 6.712 MB / 0.9407 GB, free: 174.1 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006549/2.539, allocations: 0.8887 MB / 0.9415 GB, free: 174 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03723/2.576, allocations: 20.24 MB / 0.9613 GB, free: 167.1 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01106/2.587, allocations: 5.287 MB / 0.9665 GB, free: 165.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008234/2.595, allocations: 3.02 MB / 0.9694 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002344/2.598, allocations: 386.4 kB / 0.9698 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.663e-06/2.598, allocations: 0 / 0.9698 GB, free: 165.2 MB / 0.5138 GB Notification: Performance of Templates: time 0.1553/2.753, allocations: 108.8 MB / 1.076 GB, free: 64.09 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)