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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.001219/0.001219, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001672/0.001672, allocations: 194.2 kB / 16.14 MB, free: 6.656 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.44/1.44, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1934/0.1934, allocations: 9.111 MB / 299.1 MB, free: 1.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.91 kB / 361.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1091, allocations: 51.43 MB / 412.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.1935/0.3027, allocations: 28.23 MB / 440.9 MB, free: 28.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.3134, allocations: 6.241 MB / 447.2 MB, free: 24.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004358/0.3178, allocations: 102.2 kB / 447.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009699/0.3189, allocations: 333.1 kB / 447.6 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002636/0.3215, allocations: 1.329 MB / 448.9 MB, free: 23.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003724/0.3219, allocations: 135.7 kB / 449.1 MB, free: 23.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.3244, allocations: 3.79 MB / 452.8 MB, free: 22.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009665/0.3254, allocations: 0.8779 MB / 453.7 MB, free: 21.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008446/0.3262, allocations: 0.8301 MB / 454.6 MB, free: 21.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001241/0.3275, allocations: 1.421 MB / 456 MB, free: 20.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002864/0.3278, allocations: 150 kB / 456.1 MB, free: 20.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001212/0.329, allocations: 0.7858 MB / 456.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000783/0.3298, allocations: 1.245 MB / 458.1 MB, free: 20.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3308, allocations: 1.626 MB / 459.8 MB, free: 19.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00445/0.3353, allocations: 4.946 MB / 464.7 MB, free: 17.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.3353, allocations: 0 / 464.7 MB, free: 17.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3354, allocations: 3.938 kB / 464.7 MB, free: 17.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002038/0.3356, allocations: 4 kB / 464.7 MB, free: 17.21 MB / 350.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.008794/0.3444, allocations: 3.602 MB / 468.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.393e-05/0.3445, allocations: 13.78 kB / 468.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006928/0.3514, allocations: 1.828 MB / 470.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002629/0.3541, allocations: 1.414 MB / 471.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.3542, allocations: 164.2 kB / 471.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004295/0.3546, allocations: 216.1 kB / 472 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01332/0.368, allocations: 8.677 MB / 480.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.212e-05/0.3681, allocations: 25.34 kB / 480.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003204/0.3684, allocations: 104.5 kB / 480.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003355/0.3718, allocations: 2.085 MB / 482.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/0.3859, allocations: 7.507 MB / 490.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03647/0.4224, allocations: 27.08 MB / 0.5053 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004916/0.4274, allocations: 2.172 MB / 0.5074 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001746/0.4292, allocations: 0.9427 MB / 0.5084 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01027/0.4394, allocations: 5.569 MB / 0.5138 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.4395, allocations: 47.5 kB / 0.5138 GB, free: 1.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=119): time 6.111e-06/0.4396, allocations: 0 / 0.5138 GB, free: 1.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=135): time 0.01377/0.4533, allocations: 6.959 MB / 0.5206 GB, free: 10.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.4534, allocations: 60.41 kB / 0.5207 GB, free: 10.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003981/0.4574, allocations: 2.927 MB / 0.5235 GB, free: 7.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.55e-05/0.4575, allocations: 45.69 kB / 0.5236 GB, free: 7.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.459, allocations: 2.356 MB / 0.5259 GB, free: 5.371 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004156/0.4594, allocations: 0.5128 MB / 0.5264 GB, free: 4.852 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.4605, allocations: 0.857 MB / 0.5272 GB, free: 3.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.291e-05/0.4606, allocations: 301.1 kB / 0.5275 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002203/0.4628, allocations: 1.347 MB / 0.5288 GB, free: 2.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00377/0.4666, allocations: 3.795 MB / 0.5325 GB, free: 13.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006578/0.4732, allocations: 5.498 MB / 0.5379 GB, free: 6.598 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.914e-05/0.4733, allocations: 24 kB / 0.5379 GB, free: 6.574 MB / 414.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.009233/0.4825, allocations: 5.609 MB / 0.5434 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-05/0.4826, allocations: 48.25 kB / 0.5435 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001028/0.4827, allocations: 87.94 kB / 0.5435 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000787/0.4835, allocations: 372.1 kB / 0.5439 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002661/0.4862, allocations: 0.9202 MB / 0.5448 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006785/0.493, allocations: 8.264 MB / 0.5529 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00316/0.4962, allocations: 215.9 kB / 0.5531 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005044/0.4967, allocations: 252 kB / 0.5533 GB, free: 6.047 MB / 430.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.00297/0.4997, allocations: 1.702 MB / 0.555 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004422/0.5001, allocations: 236.9 kB / 0.5552 GB, free: 4.098 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003534/0.5037, allocations: 2.251 MB / 0.5574 GB, free: 1.746 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000184/0.5039, allocations: 35.97 kB / 0.5574 GB, free: 1.711 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.5039, allocations: 8 kB / 0.5574 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.5039, allocations: 7.969 kB / 0.5574 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009596/0.5135, allocations: 5.788 MB / 0.5631 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/0.5135, allocations: 4 kB / 0.5631 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007228/0.5143, allocations: 180.2 kB / 0.5633 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000398/0.5147, allocations: 146.4 kB / 0.5634 GB, free: 11.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.297e-05/0.5148, allocations: 31.98 kB / 0.5634 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003748/0.5185, allocations: 4.674 MB / 0.568 GB, free: 6.316 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5186, allocations: 7.938 kB / 0.568 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004397/0.523, allocations: 3 MB / 0.5709 GB, free: 3.199 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007318/0.5237, allocations: 322 kB / 0.5713 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.524, allocations: 20 kB / 0.5713 GB, free: 2.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008249/0.5248, allocations: 63.98 kB / 0.5713 GB, free: 2.781 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.525, allocations: 84.84 kB / 0.5714 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.673e-05/0.5251, allocations: 43.98 kB / 0.5715 GB, free: 2.656 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002838/0.5279, allocations: 1.866 MB / 0.5733 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.528, allocations: 4.281 kB / 0.5733 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003589/0.5316, allocations: 0.715 MB / 0.574 GB, free: 64 kB / 446.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.1866/0.7182, allocations: 158.3 kB / 0.5741 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00534/0.7235, allocations: 3.688 MB / 0.5777 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.7236, allocations: 0 / 0.5777 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.7249, allocations: 1.125 MB / 0.5788 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.727, allocations: 382.2 kB / 0.5792 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/0.7379, allocations: 8.523 MB / 0.5875 GB, free: 117.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002538/0.7405, allocations: 2.75 MB / 0.5902 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002963/0.7435, allocations: 1.212 MB / 0.5914 GB, free: 116.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.7439, allocations: 178.5 kB / 0.5916 GB, free: 116.3 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.7439, allocations: 0 / 0.5916 GB, free: 116.3 MB / 446.1 MB Notification: Performance of Templates: time 0.05361/0.7975, allocations: 25.51 MB / 0.6165 GB, free: 112.1 MB / 446.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)