Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) 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(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") translateModel(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.00109/0.00109, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04416/0.04416, allocations: 9.11 MB / 300.3 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 67.89 kB / 363.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2277, allocations: 51.41 MB / 414.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.0079/0.2356, allocations: 9.552 MB / 424.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004871/0.2405, allocations: 2.748 MB / 427.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.2416, allocations: 35.94 kB / 427.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007987/0.2424, allocations: 401.3 kB / 427.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002843/0.2453, allocations: 1.416 MB / 428.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004364/0.2458, allocations: 167.7 kB / 429.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002588/0.2484, allocations: 2.727 MB / 431.8 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009413/0.2494, allocations: 0.9602 MB / 432.8 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.2504, allocations: 0.961 MB / 433.8 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.2517, allocations: 1.405 MB / 435.2 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003623/0.252, allocations: 251.9 kB / 435.4 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001489/0.2535, allocations: 0.8465 MB / 436.2 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.2547, allocations: 1.321 MB / 437.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001692/0.2564, allocations: 1.716 MB / 439.3 MB, free: 300 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007136/0.2635, allocations: 5.352 MB / 444.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.2636, allocations: 8 kB / 444.6 MB, free: 10.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2636, allocations: 4 kB / 444.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.00017/0.2638, allocations: 0 / 444.6 MB, free: 10.91 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.00929/0.2731, allocations: 3.598 MB / 448.2 MB, free: 7.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.2731, allocations: 12.03 kB / 448.3 MB, free: 7.238 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00657/0.2797, allocations: 1.837 MB / 450.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00312/0.2829, allocations: 1.429 MB / 451.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.283, allocations: 164.4 kB / 451.7 MB, free: 3.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004283/0.2834, allocations: 212.2 kB / 451.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01213/0.2956, allocations: 8.678 MB / 460.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-05/0.2957, allocations: 23.72 kB / 460.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002883/0.296, allocations: 99.84 kB / 460.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002992/0.299, allocations: 2.091 MB / 462.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01352/0.3125, allocations: 7.498 MB / 470.3 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03704/0.3496, allocations: 26.97 MB / 497.2 MB, free: 5.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004148/0.3538, allocations: 2.172 MB / 499.4 MB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.3553, allocations: 0.9471 MB / 0.4886 GB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009246/0.3646, allocations: 5.556 MB / 0.4941 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.3646, allocations: 43.56 kB / 0.4941 GB, free: 11.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 2.805e-06/0.3646, allocations: 0 / 0.4941 GB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01294/0.3776, allocations: 6.967 MB / 0.5009 GB, free: 4.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.3777, allocations: 64.41 kB / 0.501 GB, free: 4.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/0.3815, allocations: 2.924 MB / 0.5038 GB, free: 1.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.3817, allocations: 45.7 kB / 0.5039 GB, free: 1.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2097/0.5914, allocations: 2.356 MB / 0.5062 GB, free: 88.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006978/0.5921, allocations: 0.5125 MB / 0.5067 GB, free: 88.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001542/0.5936, allocations: 0.8557 MB / 0.5075 GB, free: 88.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.74e-05/0.5937, allocations: 302.6 kB / 0.5078 GB, free: 88.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00223/0.5959, allocations: 1.351 MB / 0.5091 GB, free: 87.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003055/0.599, allocations: 3.792 MB / 0.5128 GB, free: 83.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005313/0.6043, allocations: 5.501 MB / 0.5182 GB, free: 79.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.494e-05/0.6044, allocations: 22.19 kB / 0.5182 GB, free: 79.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.007327/0.6117, allocations: 5.619 MB / 0.5237 GB, free: 76.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/0.6118, allocations: 41.47 kB / 0.5237 GB, free: 76.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.318e-05/0.6119, allocations: 87.47 kB / 0.5238 GB, free: 76.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006137/0.6125, allocations: 364.8 kB / 0.5242 GB, free: 76.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002263/0.6148, allocations: 0.9207 MB / 0.5251 GB, free: 76.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004714/0.6195, allocations: 9.114 MB / 0.534 GB, free: 67.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/0.6224, allocations: 229.6 kB / 0.5342 GB, free: 67.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002899/0.6227, allocations: 255.9 kB / 0.5344 GB, free: 67.32 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,10,66.7%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001951/0.6246, allocations: 1.694 MB / 0.5361 GB, free: 65.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.6249, allocations: 240.8 kB / 0.5363 GB, free: 65.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/0.6276, allocations: 2.242 MB / 0.5385 GB, free: 63.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001512/0.6278, allocations: 43.44 kB / 0.5385 GB, free: 63.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.6278, allocations: 7.938 kB / 0.5386 GB, free: 63.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.6278, allocations: 3.797 kB / 0.5386 GB, free: 63.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007693/0.6355, allocations: 5.766 MB / 0.5442 GB, free: 57.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.6355, allocations: 0 / 0.5442 GB, free: 57.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006453/0.6362, allocations: 179.7 kB / 0.5444 GB, free: 57.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003442/0.6365, allocations: 147 kB / 0.5445 GB, free: 57.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-05/0.6366, allocations: 32 kB / 0.5445 GB, free: 57.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/0.6394, allocations: 5.202 MB / 0.5496 GB, free: 51.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.6394, allocations: 8 kB / 0.5496 GB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003443/0.6428, allocations: 3.008 MB / 0.5526 GB, free: 48.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007159/0.6436, allocations: 318 kB / 0.5529 GB, free: 48.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000241/0.6438, allocations: 20 kB / 0.5529 GB, free: 48.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007698/0.6446, allocations: 63.92 kB / 0.5529 GB, free: 48.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.6447, allocations: 80.84 kB / 0.553 GB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.296e-05/0.6448, allocations: 47.27 kB / 0.5531 GB, free: 48.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002429/0.6473, allocations: 1.87 MB / 0.5549 GB, free: 46.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6473, allocations: 1.875 kB / 0.5549 GB, free: 46.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003358/0.6506, allocations: 0.7201 MB / 0.5556 GB, free: 45.69 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.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 (103): * Single equations (assignments): 95 * Array equations: 5 * 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): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002797/0.6509, allocations: 159.6 kB / 0.5557 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004806/0.6557, allocations: 3.704 MB / 0.5594 GB, free: 41.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.6558, allocations: 0.6875 kB / 0.5594 GB, free: 41.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.657, allocations: 1.126 MB / 0.5605 GB, free: 40.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/0.6587, allocations: 419 kB / 0.5609 GB, free: 40.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009108/0.6678, allocations: 6.754 MB / 0.5675 GB, free: 33.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002184/0.67, allocations: 2.753 MB / 0.5701 GB, free: 30.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002324/0.6723, allocations: 1.202 MB / 0.5713 GB, free: 29.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003624/0.6727, allocations: 187.4 kB / 0.5715 GB, free: 29.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6727, allocations: 0 / 0.5715 GB, free: 29.27 MB / 382.1 MB Notification: Performance of Templates: time 0.03783/0.7106, allocations: 22.41 MB / 0.5934 GB, free: 7.086 MB / 382.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDemo -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)