Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007787/0.0007789, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.004857/0.004857, allocations: 171.7 kB / 16.26 MB, free: 6.676 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.551/1.551, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0005364/0.0005366, allocations: 22.81 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2745, allocations: 47.58 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.03505/0.3096, allocations: 37.6 MB / 364.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02099/0.3307, allocations: 8.436 MB / 373.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008412/0.3391, allocations: 159.6 kB / 373.2 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002196/0.3414, allocations: 417.9 kB / 373.6 MB, free: 4.598 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005973/0.3474, allocations: 1.721 MB / 375.4 MB, free: 2.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001804/0.3492, allocations: 0.6553 MB / 376 MB, free: 2.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007844/0.3571, allocations: 5.919 MB / 381.9 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006528/0.3637, allocations: 3.712 MB / 385.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.3669, allocations: 1.163 MB / 386.8 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003784/0.3707, allocations: 2.028 MB / 388.8 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007768/0.3715, allocations: 144 kB / 389 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002062/0.3736, allocations: 0.8385 MB / 389.8 MB, free: 4.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002035/0.3757, allocations: 1.675 MB / 391.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002415/0.3781, allocations: 1.938 MB / 393.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006858/0.385, allocations: 5.959 MB / 399.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.385, allocations: 4 kB / 399.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.385, allocations: 0 / 399.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001859/0.3852, allocations: 0 / 399.4 MB, free: 10.7 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.007374/0.3926, allocations: 3.811 MB / 403.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.3927, allocations: 8.031 kB / 403.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007472/0.4001, allocations: 1.968 MB / 405.2 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004819/0.405, allocations: 2.355 MB / 407.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002227/0.4052, allocations: 233.6 kB / 407.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006272/0.4059, allocations: 295.7 kB / 408.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/0.4216, allocations: 9.655 MB / 417.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/0.4217, allocations: 47.58 kB / 417.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003673/0.4221, allocations: 143.9 kB / 417.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002998/0.4251, allocations: 1.927 MB / 419.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01599/0.4411, allocations: 7.649 MB / 427.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2883/0.7294, allocations: 37.76 MB / 465.2 MB, free: 85.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006496/0.736, allocations: 2.898 MB / 468.1 MB, free: 85.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00109/0.7371, allocations: 0.8709 MB / 469 MB, free: 85.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006011/0.7431, allocations: 3.77 MB / 472.8 MB, free: 83.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.7432, allocations: 50.12 kB / 472.8 MB, free: 83.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.526e-06/0.7432, allocations: 0 / 472.8 MB, free: 83.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.0207/0.7639, allocations: 9.071 MB / 481.9 MB, free: 78.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/0.764, allocations: 152.3 kB / 482 MB, free: 78.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/0.7686, allocations: 3.94 MB / 486 MB, free: 76.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001481/0.7688, allocations: 49.67 kB / 486 MB, free: 76.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/0.7703, allocations: 3.076 MB / 489.1 MB, free: 73.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005218/0.7709, allocations: 0.6143 MB / 489.7 MB, free: 73.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004371/0.7713, allocations: 0.4912 MB / 490.2 MB, free: 72.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.56e-05/0.7714, allocations: 305.1 kB / 490.5 MB, free: 72.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001915/0.7733, allocations: 1.581 MB / 492.1 MB, free: 70.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003481/0.7768, allocations: 5.354 MB / 497.4 MB, free: 63.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006734/0.7835, allocations: 7.54 MB / 0.4931 GB, free: 54.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.368e-05/0.7836, allocations: 40 kB / 0.4932 GB, free: 54.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009369/0.793, allocations: 6.657 MB / 0.4997 GB, free: 47.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.884e-05/0.7931, allocations: 68.25 kB / 0.4997 GB, free: 47.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.7932, allocations: 136 kB / 0.4999 GB, free: 47.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/0.7934, allocations: 187.4 kB / 0.5001 GB, free: 47.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003482/0.7968, allocations: 1.38 MB / 0.5014 GB, free: 46.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001405/0.797, allocations: 263 kB / 0.5017 GB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003523/0.8005, allocations: 287.5 kB / 0.5019 GB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003502/0.8009, allocations: 368.2 kB / 0.5023 GB, free: 45.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002396/0.8033, allocations: 1.982 MB / 0.5042 GB, free: 43.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000473/0.8038, allocations: 331.7 kB / 0.5045 GB, free: 42.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.8056, allocations: 1.254 MB / 0.5058 GB, free: 41.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.288e-05/0.8056, allocations: 21.66 kB / 0.5058 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.8056, allocations: 0 / 0.5058 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.8056, allocations: 7.984 kB / 0.5058 GB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00751/0.8131, allocations: 5.748 MB / 0.5114 GB, free: 35.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/0.8132, allocations: 20.66 kB / 0.5114 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008952/0.8141, allocations: 275.5 kB / 0.5117 GB, free: 35.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.312e-05/0.8141, allocations: 28.69 kB / 0.5117 GB, free: 35.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.345e-05/0.8142, allocations: 44 kB / 0.5118 GB, free: 35.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.932e-05/0.8142, allocations: 39.86 kB / 0.5118 GB, free: 35.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.316e-05/0.8143, allocations: 31.88 kB / 0.5118 GB, free: 35.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003374/0.8176, allocations: 3.221 MB / 0.515 GB, free: 31.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/0.8192, allocations: 0.5166 MB / 0.5155 GB, free: 31.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004282/0.8196, allocations: 52.59 kB / 0.5155 GB, free: 31.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.8208, allocations: 60.98 kB / 0.5156 GB, free: 31.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.821, allocations: 147.4 kB / 0.5157 GB, free: 30.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.181e-05/0.821, allocations: 74.73 kB / 0.5158 GB, free: 30.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003414/0.8245, allocations: 2.45 MB / 0.5182 GB, free: 28.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8245, allocations: 0 / 0.5182 GB, free: 28.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005563/0.8301, allocations: 0.872 MB / 0.519 GB, free: 27.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004517/0.8305, allocations: 203.6 kB / 0.5192 GB, free: 27.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005394/0.8359, allocations: 3.636 MB / 0.5228 GB, free: 23.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/0.836, allocations: 0 / 0.5228 GB, free: 23.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008664/0.8369, allocations: 0.728 MB / 0.5235 GB, free: 23.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.011/0.8479, allocations: 453 kB / 0.5239 GB, free: 22.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01468/0.8626, allocations: 10.63 MB / 0.5343 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002698/0.8653, allocations: 3.103 MB / 0.5373 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00406/0.8694, allocations: 1.771 MB / 0.5391 GB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004466/0.8699, allocations: 231.4 kB / 0.5393 GB, free: 6.562 MB / 382.1 MB Notification: Performance of SimCode: time 2.225e-06/0.8699, allocations: 0 / 0.5393 GB, free: 6.562 MB / 382.1 MB Notification: Performance of Templates: time 0.0529/0.9228, allocations: 26.08 MB / 0.5647 GB, free: 12.51 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)