Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001443/0.001443, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002074/0.002074, allocations: 194 kB / 16.25 MB, free: 6.625 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.487/1.487, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.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.001346/0.001346, allocations: 55.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2685, allocations: 46.63 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.07769/0.3462, allocations: 81.45 MB / 406.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04459/0.3908, allocations: 16.53 MB / 422.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02548/0.4164, allocations: 371.1 kB / 423.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01131/0.4278, allocations: 6.074 MB / 429.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008878/0.4367, allocations: 2.663 MB / 431.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00583/0.4426, allocations: 2.184 MB / 434.1 MB, free: 6.449 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01482/0.4574, allocations: 9.26 MB / 443.4 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01559/0.473, allocations: 8.85 MB / 452.2 MB, free: 4.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007683/0.4807, allocations: 3.295 MB / 455.5 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2729/0.7537, allocations: 4.628 MB / 460.1 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003231/0.757, allocations: 0.7242 MB / 460.9 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00559/0.7626, allocations: 1.916 MB / 462.8 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007759/0.7704, allocations: 3.884 MB / 466.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01108/0.7815, allocations: 4.19 MB / 470.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01754/0.7991, allocations: 13.01 MB / 483.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.7991, allocations: 0 / 483.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.7991, allocations: 0 / 483.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005402/0.7997, allocations: 5.344 kB / 483.9 MB, free: 11.18 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.02744/0.8271, allocations: 8.939 MB / 492.8 MB, free: 6.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.8272, allocations: 8.938 kB / 492.8 MB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04314/0.8703, allocations: 4.846 MB / 497.7 MB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/0.8872, allocations: 6.58 MB / 0.4924 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003983/0.8876, allocations: 436 kB / 0.4928 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003287/0.8909, allocations: 0.5816 MB / 0.4934 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04127/0.9322, allocations: 17.07 MB / 0.5101 GB, free: 3.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003751/0.9326, allocations: 74.72 kB / 0.5102 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001526/0.9341, allocations: 267.8 kB / 0.5104 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004511/0.9386, allocations: 2.664 MB / 0.513 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03323/0.9719, allocations: 14.78 MB / 0.5274 GB, free: 2.324 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09878/1.071, allocations: 64.63 MB / 0.5906 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02329/1.094, allocations: 8.776 MB / 0.5991 GB, free: 7.984 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006899/1.101, allocations: 5.068 MB / 0.6041 GB, free: 2.914 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02818/1.129, allocations: 18.65 MB / 0.6223 GB, free: 148 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/1.129, allocations: 68.56 kB / 0.6224 GB, free: 72 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=281): time 5.39e-06/1.129, allocations: 0 / 0.6224 GB, free: 72 kB / 0.4981 GB Notification: Performance of matching and sorting (n=374): time 0.466/1.595, allocations: 74.06 MB / 0.6947 GB, free: 172.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/1.595, allocations: 376.6 kB / 0.6951 GB, free: 172.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009435/1.605, allocations: 6.42 MB / 0.7013 GB, free: 165.9 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001461/1.606, allocations: 87.42 kB / 0.7014 GB, free: 165.8 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00286/1.609, allocations: 4.756 MB / 0.706 GB, free: 161.1 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00223/1.612, allocations: 1.387 MB / 0.7074 GB, free: 159.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002996/1.615, allocations: 1.974 MB / 0.7093 GB, free: 157.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.965e-05/1.615, allocations: 301.1 kB / 0.7096 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006599/1.621, allocations: 5.996 MB / 0.7155 GB, free: 151.4 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008828/1.63, allocations: 11.02 MB / 0.7262 GB, free: 137.9 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01863/1.649, allocations: 17.96 MB / 0.7438 GB, free: 117.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001674/1.649, allocations: 48 kB / 0.7438 GB, free: 117.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04383/1.693, allocations: 23.35 MB / 0.7666 GB, free: 94.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/1.693, allocations: 80 kB / 0.7667 GB, free: 94.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001727/1.693, allocations: 172.9 kB / 0.7669 GB, free: 93.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0214/1.714, allocations: 7.469 MB / 0.7741 GB, free: 86.35 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008101/1.723, allocations: 2.187 MB / 0.7763 GB, free: 84.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04206/1.765, allocations: 38.1 MB / 0.8135 GB, free: 45.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0107/1.775, allocations: 0.7439 MB / 0.8142 GB, free: 44.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002386/1.778, allocations: 0.5273 MB / 0.8147 GB, free: 44.36 MB / 0.4981 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.007936/1.786, allocations: 3.438 MB / 0.8181 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001749/1.788, allocations: 0.5746 MB / 0.8187 GB, free: 40.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02953/1.817, allocations: 16.96 MB / 0.8352 GB, free: 23.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.123e-05/1.817, allocations: 55.94 kB / 0.8353 GB, free: 23.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.825e-05/1.817, allocations: 16 kB / 0.8353 GB, free: 23.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.596e-05/1.817, allocations: 19.92 kB / 0.8353 GB, free: 23.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2939/2.111, allocations: 32.16 MB / 0.8667 GB, free: 190.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-05/2.111, allocations: 3.719 kB / 0.8667 GB, free: 190.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003202/2.115, allocations: 0.6142 MB / 0.8673 GB, free: 190.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01938/2.134, allocations: 7.028 MB / 0.8742 GB, free: 189.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001247/2.135, allocations: 65.22 kB / 0.8742 GB, free: 189.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04225/2.178, allocations: 36.3 MB / 0.9097 GB, free: 161.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/2.178, allocations: 11.88 kB / 0.9097 GB, free: 161.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03737/2.215, allocations: 24.61 MB / 0.9337 GB, free: 136.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007234/2.222, allocations: 1.658 MB / 0.9353 GB, free: 135.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004138/2.226, allocations: 66.44 kB / 0.9354 GB, free: 135.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006154/2.233, allocations: 450.3 kB / 0.9358 GB, free: 134.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001913/2.235, allocations: 246.6 kB / 0.9361 GB, free: 134.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009522/2.236, allocations: 89.64 kB / 0.9362 GB, free: 134.6 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0074/2.243, allocations: 4.084 MB / 0.9401 GB, free: 130.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.31e-07/2.243, allocations: 3.969 kB / 0.9402 GB, free: 130.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01381/2.257, allocations: 2.294 MB / 0.9424 GB, free: 128.2 MB / 0.4981 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.002201/2.259, allocations: 275.5 kB / 0.9427 GB, free: 128 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.03199/2.291, allocations: 20.06 MB / 0.9622 GB, free: 108 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/2.291, allocations: 4 kB / 0.9622 GB, free: 108 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.01187/2.303, allocations: 6.707 MB / 0.9688 GB, free: 101.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01185/2.315, allocations: 0.9047 MB / 0.9697 GB, free: 100.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04496/2.36, allocations: 23.59 MB / 0.9927 GB, free: 76.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01034/2.37, allocations: 5.283 MB / 0.9979 GB, free: 71.54 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.009987/2.38, allocations: 3.02 MB / 1.001 GB, free: 68.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002453/2.383, allocations: 387.4 kB / 1.001 GB, free: 68.14 MB / 0.4981 GB Notification: Performance of SimCode: time 3.316e-06/2.383, allocations: 4 kB / 1.001 GB, free: 68.13 MB / 0.4981 GB Notification: Performance of Templates: time 0.4321/2.815, allocations: 113.2 MB / 1.112 GB, free: 158.1 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)