Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.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.VehicleComponents.Examples.TestAirDrag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag") translateModel(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008484/0.008484, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001562/0.001562, allocations: 196.8 kB / 16.68 MB, free: 5.977 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.46/1.46, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2271/0.2271, allocations: 9.121 MB / 299.7 MB, free: 1.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 414.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3457, allocations: 51.43 MB / 466.1 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.0102/0.356, allocations: 8.205 MB / 474.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008148/0.3642, allocations: 2.665 MB / 476.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.3658, allocations: 32.81 kB / 477 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.3669, allocations: 351.2 kB / 477.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003645/0.3706, allocations: 1.245 MB / 478.6 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006896/0.3713, allocations: 270.3 kB / 478.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003142/0.3744, allocations: 2.432 MB / 481.3 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001498/0.3759, allocations: 1.141 MB / 482.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00135/0.3773, allocations: 0.8881 MB / 483.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001637/0.379, allocations: 1.317 MB / 484.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005895/0.3796, allocations: 248.3 kB / 484.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001836/0.3814, allocations: 0.7632 MB / 485.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001194/0.3826, allocations: 1.205 MB / 486.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001569/0.3842, allocations: 1.544 MB / 488.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006982/0.3912, allocations: 4.948 MB / 493.3 MB, free: 200 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.3912, allocations: 1.375 kB / 493.3 MB, free: 200 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3912, allocations: 0 / 493.3 MB, free: 200 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001448/0.3914, allocations: 0 / 493.3 MB, free: 200 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.01027/0.4017, allocations: 3.7 MB / 497 MB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.4017, allocations: 8.031 kB / 497 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006683/0.4084, allocations: 1.773 MB / 498.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003422/0.4119, allocations: 1.318 MB / 0.4884 GB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.412, allocations: 160.2 kB / 0.4885 GB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004263/0.4125, allocations: 204.2 kB / 0.4887 GB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01084/0.4233, allocations: 7.558 MB / 0.4961 GB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.47e-05/0.4234, allocations: 15.88 kB / 0.4961 GB, free: 1.668 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002714/0.4237, allocations: 95.88 kB / 0.4962 GB, free: 1.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002801/0.4265, allocations: 1.704 MB / 0.4979 GB, free: 15.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.4398, allocations: 6.832 MB / 0.5046 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03636/0.4762, allocations: 22.96 MB / 0.527 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003621/0.4799, allocations: 2.02 MB / 0.529 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.481, allocations: 0.77 MB / 0.5297 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005253/0.4862, allocations: 2.846 MB / 0.5325 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.4863, allocations: 43.56 kB / 0.5325 GB, free: 11.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 3.547e-06/0.4863, allocations: 0 / 0.5325 GB, free: 11.58 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.008622/0.4949, allocations: 4.081 MB / 0.5365 GB, free: 7.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.495, allocations: 60.41 kB / 0.5366 GB, free: 7.426 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003737/0.4988, allocations: 2.41 MB / 0.5389 GB, free: 4.977 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.499, allocations: 45.7 kB / 0.539 GB, free: 4.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001441/0.5004, allocations: 2.075 MB / 0.541 GB, free: 2.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005583/0.501, allocations: 0.5193 MB / 0.5415 GB, free: 2.305 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/0.502, allocations: 0.7308 MB / 0.5422 GB, free: 1.566 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.5021, allocations: 301.1 kB / 0.5425 GB, free: 1.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001904/0.504, allocations: 1.217 MB / 0.5437 GB, free: 52 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003492/0.5075, allocations: 3.265 MB / 0.5469 GB, free: 11.78 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007802/0.5153, allocations: 5.392 MB / 0.5521 GB, free: 5.375 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.753e-05/0.5154, allocations: 20 kB / 0.5522 GB, free: 5.355 MB / 430.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.007796/0.5232, allocations: 4.583 MB / 0.5566 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.5233, allocations: 36.97 kB / 0.5567 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.82e-05/0.5234, allocations: 72 kB / 0.5567 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005902/0.524, allocations: 240.7 kB / 0.557 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002336/0.5263, allocations: 0.811 MB / 0.5578 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/0.5296, allocations: 2.882 MB / 0.5606 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002733/0.5324, allocations: 183.9 kB / 0.5608 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/0.5327, allocations: 220 kB / 0.561 GB, free: 12.19 MB / 446.1 MB Warning: Assuming fixed start value for the following 1 variables: revolute.w:VARIABLE(start = -5.0 unit = "rad/s" fixed = true stateSelect=StateSelect.always ) "Angular velocity" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 328 * Number of states: 0 () * Number of discrete variables: 9 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (436): * Single equations (assignments): 431 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002832/0.5356, allocations: 1.518 MB / 0.5624 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003526/0.5359, allocations: 218.5 kB / 0.5627 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/0.539, allocations: 1.806 MB / 0.5644 GB, free: 8.629 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.987e-05/0.5391, allocations: 23.98 kB / 0.5644 GB, free: 8.605 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5391, allocations: 8 kB / 0.5645 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.5391, allocations: 3.984 kB / 0.5645 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009404/0.5486, allocations: 5.187 MB / 0.5695 GB, free: 3.285 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/0.5486, allocations: 4.172 kB / 0.5695 GB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007443/0.5493, allocations: 183.7 kB / 0.5697 GB, free: 3.102 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000352/0.5497, allocations: 120.7 kB / 0.5698 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/0.5498, allocations: 28.2 kB / 0.5698 GB, free: 2.953 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002626/0.5524, allocations: 2.404 MB / 0.5722 GB, free: 416 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.5525, allocations: 8.219 kB / 0.5722 GB, free: 408 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004157/0.5566, allocations: 2.84 MB / 0.575 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.5579, allocations: 427.6 kB / 0.5754 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.5581, allocations: 23.92 kB / 0.5754 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007482/0.5589, allocations: 55.88 kB / 0.5755 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.5591, allocations: 72.97 kB / 0.5755 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.242e-05/0.5591, allocations: 39.94 kB / 0.5756 GB, free: 12.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002415/0.5616, allocations: 1.55 MB / 0.5771 GB, free: 11.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5616, allocations: 4 kB / 0.5771 GB, free: 11.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002996/0.5646, allocations: 0.6171 MB / 0.5777 GB, free: 10.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (revolute.phi,revolute.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 (99): * Single equations (assignments): 94 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003775/0.565, allocations: 152.5 kB / 0.5778 GB, free: 10.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004667/0.5696, allocations: 2.944 MB / 0.5807 GB, free: 7.586 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.5697, allocations: 384 / 0.5807 GB, free: 7.586 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.5709, allocations: 0.9256 MB / 0.5816 GB, free: 6.652 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001793/0.5727, allocations: 396.7 kB / 0.582 GB, free: 6.27 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.5828, allocations: 5.996 MB / 0.5878 GB, free: 216 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2927/0.8755, allocations: 2.462 MB / 0.5902 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004188/0.8798, allocations: 1.098 MB / 0.5913 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005182/0.8803, allocations: 153.5 kB / 0.5915 GB, free: 111.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.283e-06/0.8803, allocations: 3.906 kB / 0.5915 GB, free: 111.8 MB / 462.1 MB Notification: Performance of Templates: time 0.05845/0.9388, allocations: 23.24 MB / 0.6142 GB, free: 103.9 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.makefile (rm -f PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; mkfifo PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe >> ../files/PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.sim & ./PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)