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/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.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.000989/0.0009891, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009482/0.0009482, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1689/0.1689, allocations: 9.089 MB / 300.1 MB, free: 2.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003632, allocations: 8 kB / 363 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1256, allocations: 52.43 MB / 415.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.2786/0.4043, allocations: 16.46 MB / 431.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00921/0.4135, allocations: 4.696 MB / 436.6 MB, free: 32.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003993/0.4175, allocations: 66.06 kB / 436.6 MB, free: 32.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.4202, allocations: 0.7706 MB / 437.4 MB, free: 32.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008543/0.4288, allocations: 2.468 MB / 439.9 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001341/0.4302, allocations: 211.2 kB / 440.1 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003039/0.4332, allocations: 1.36 MB / 441.4 MB, free: 30.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.4345, allocations: 0.9376 MB / 442.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008772/0.4354, allocations: 0.6489 MB / 443 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.4366, allocations: 0.9654 MB / 444 MB, free: 29.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002636/0.4368, allocations: 128.4 kB / 444.1 MB, free: 29.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.438, allocations: 0.5793 MB / 444.7 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007985/0.4388, allocations: 1.001 MB / 445.7 MB, free: 29.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00054/0.4394, allocations: 0.6157 MB / 446.3 MB, free: 28.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003209/0.4426, allocations: 3.662 MB / 450 MB, free: 28.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4426, allocations: 0 / 450 MB, free: 28.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4426, allocations: 3.938 kB / 450 MB, free: 28.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.137e-05/0.4427, allocations: 0 / 450 MB, free: 28.1 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: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.00688/0.4496, allocations: 3.068 MB / 453.1 MB, free: 26.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4497, allocations: 9.25 kB / 453.1 MB, free: 26.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007553/0.4572, allocations: 2.161 MB / 455.2 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004932/0.4622, allocations: 1.3 MB / 456.5 MB, free: 25.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.4624, allocations: 157.6 kB / 456.7 MB, free: 25.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/0.4637, allocations: 208.1 kB / 456.9 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/0.4757, allocations: 7.535 MB / 464.4 MB, free: 21.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.4759, allocations: 24.02 kB / 464.4 MB, free: 21.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003459/0.4762, allocations: 97.38 kB / 464.5 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003853/0.4801, allocations: 1.704 MB / 466.2 MB, free: 21.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01573/0.4958, allocations: 6.823 MB / 473.1 MB, free: 19.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04297/0.5388, allocations: 22.97 MB / 496 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003687/0.5426, allocations: 2.148 MB / 498.2 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008146/0.5434, allocations: 0.6838 MB / 498.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.033e-05/0.5435, allocations: 47.5 kB / 498.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 4.148e-06/0.5435, allocations: 4 kB / 498.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01092/0.5544, allocations: 4.648 MB / 0.4918 GB, free: 10.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.5545, allocations: 68.41 kB / 0.4918 GB, free: 10.49 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004569/0.5591, allocations: 2.357 MB / 0.4941 GB, free: 8.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.5593, allocations: 45.69 kB / 0.4942 GB, free: 8.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001685/0.561, allocations: 1.969 MB / 0.4961 GB, free: 6.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006207/0.5616, allocations: 0.5281 MB / 0.4966 GB, free: 5.504 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000257/0.5619, allocations: 72 kB / 0.4967 GB, free: 5.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003236/0.5622, allocations: 461.9 kB / 0.4971 GB, free: 4.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002341/0.5646, allocations: 1.209 MB / 0.4983 GB, free: 3.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003789/0.5684, allocations: 3.246 MB / 0.5015 GB, free: 15.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003294/0.5717, allocations: 1.996 MB / 0.5034 GB, free: 13.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.453e-05/0.5718, allocations: 20 kB / 0.5034 GB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=475) (initialization): time 0.008786/0.5806, allocations: 4.555 MB / 0.5079 GB, free: 8.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.522e-05/0.5807, allocations: 36 kB / 0.5079 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/0.5808, allocations: 72 kB / 0.508 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006916/0.5815, allocations: 236.7 kB / 0.5082 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002781/0.5843, allocations: 0.8148 MB / 0.509 GB, free: 7.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003272/0.5876, allocations: 2.702 MB / 0.5116 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002712/0.5904, allocations: 183.9 kB / 0.5118 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004875/0.5909, allocations: 216 kB / 0.512 GB, free: 4.547 MB / 382.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 (438): * Single equations (assignments): 433 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003145/0.594, allocations: 1.516 MB / 0.5135 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005012/0.5945, allocations: 209.3 kB / 0.5137 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003768/0.5983, allocations: 2.078 MB / 0.5157 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001063/0.5984, allocations: 23.98 kB / 0.5158 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5984, allocations: 3.938 kB / 0.5158 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.5985, allocations: 7.984 kB / 0.5158 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.612, allocations: 5.588 MB / 0.5212 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/0.612, allocations: 8 kB / 0.5212 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008571/0.6129, allocations: 191.7 kB / 0.5214 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003831/0.6133, allocations: 129.2 kB / 0.5215 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.6134, allocations: 27.98 kB / 0.5216 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/0.6159, allocations: 2.218 MB / 0.5237 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.6159, allocations: 11.88 kB / 0.5237 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004815/0.6207, allocations: 3.283 MB / 0.527 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/0.622, allocations: 438.3 kB / 0.5274 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000546/0.6226, allocations: 28.05 kB / 0.5274 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.6237, allocations: 63.84 kB / 0.5275 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.6239, allocations: 76.8 kB / 0.5275 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-05/0.624, allocations: 47.97 kB / 0.5276 GB, free: 4.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003129/0.6272, allocations: 1.535 MB / 0.5291 GB, free: 2.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6272, allocations: 0 / 0.5291 GB, free: 2.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00357/0.6308, allocations: 0.6288 MB / 0.5297 GB, free: 1.887 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (108): * Single equations (assignments): 103 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004673/0.6312, allocations: 155.5 kB / 0.5298 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005293/0.6366, allocations: 2.962 MB / 0.5327 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.6366, allocations: 1.25 kB / 0.5327 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001489/0.6381, allocations: 0.9579 MB / 0.5337 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/0.6401, allocations: 348.1 kB / 0.534 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.6544, allocations: 7.295 MB / 0.5411 GB, free: 6.098 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003857/0.6583, allocations: 2.528 MB / 0.5436 GB, free: 3.543 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003312/0.6617, allocations: 1.132 MB / 0.5447 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006162/0.6623, allocations: 163.4 kB / 0.5449 GB, free: 2.246 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.6623, allocations: 0 / 0.5449 GB, free: 2.246 MB / 414.1 MB Notification: Performance of Templates: time 0.04917/0.7115, allocations: 22.34 MB / 0.5667 GB, free: 12.04 MB / 446.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)