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.00171/0.00171, allocations: 113.9 kB / 16.41 MB, free: 6.484 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.001449/0.001449, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04482/0.04482, allocations: 9.121 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 55.91 kB / 415.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09313, allocations: 51.44 MB / 466.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.009179/0.1023, allocations: 8.207 MB / 474.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005233/0.1076, allocations: 2.655 MB / 477.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.1088, allocations: 31.94 kB / 477.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001119/0.1099, allocations: 357.7 kB / 478 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003288/0.1133, allocations: 1.21 MB / 479.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.1143, allocations: 275.6 kB / 479.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003565/0.1179, allocations: 2.424 MB / 481.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001783/0.1197, allocations: 1.142 MB / 483 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.1212, allocations: 0.8912 MB / 483.9 MB, free: 416 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002085/0.1233, allocations: 1.316 MB / 485.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008065/0.1242, allocations: 252 kB / 485.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.126, allocations: 0.7685 MB / 486.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001608/0.1276, allocations: 1.2 MB / 487.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002081/0.1297, allocations: 1.542 MB / 489 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005072/0.1348, allocations: 4.925 MB / 493.9 MB, free: 6.375 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1348, allocations: 0 / 493.9 MB, free: 6.375 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1348, allocations: 0 / 493.9 MB, free: 6.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.681e-05/0.1349, allocations: 4 kB / 493.9 MB, free: 6.371 MB / 366.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.007373/0.1423, allocations: 3.619 MB / 497.5 MB, free: 2.688 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.1424, allocations: 8.031 kB / 497.5 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006275/0.1486, allocations: 1.752 MB / 499.3 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/0.1517, allocations: 1.322 MB / 0.4889 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.1519, allocations: 152.1 kB / 0.489 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005994/0.1525, allocations: 200.2 kB / 0.4892 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/0.1646, allocations: 7.565 MB / 0.4966 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.099e-05/0.1647, allocations: 15.88 kB / 0.4966 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003375/0.165, allocations: 91.89 kB / 0.4967 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00259/0.1676, allocations: 1.711 MB / 0.4984 GB, free: 5.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2415/0.4092, allocations: 6.831 MB / 0.5051 GB, free: 39.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03004/0.4392, allocations: 22.9 MB / 0.5274 GB, free: 25.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003155/0.4424, allocations: 2.021 MB / 0.5294 GB, free: 23.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009905/0.4434, allocations: 0.7662 MB / 0.5301 GB, free: 23.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003989/0.4474, allocations: 2.843 MB / 0.5329 GB, free: 21.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.4475, allocations: 44.19 kB / 0.533 GB, free: 21.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=118): time 3.437e-06/0.4475, allocations: 4.047 kB / 0.533 GB, free: 21.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.006949/0.4545, allocations: 4.026 MB / 0.5369 GB, free: 19.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.4545, allocations: 63.78 kB / 0.537 GB, free: 19.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002832/0.4574, allocations: 2.407 MB / 0.5393 GB, free: 17.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.45e-05/0.4575, allocations: 41.48 kB / 0.5393 GB, free: 17.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007244/0.4582, allocations: 1.997 MB / 0.5413 GB, free: 16.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.4585, allocations: 0.4987 MB / 0.5418 GB, free: 15.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000704/0.4592, allocations: 0.7271 MB / 0.5425 GB, free: 15.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.306e-05/0.4592, allocations: 305.1 kB / 0.5428 GB, free: 14.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.4607, allocations: 1.219 MB / 0.544 GB, free: 14.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002053/0.4628, allocations: 3.261 MB / 0.5472 GB, free: 10.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005482/0.4683, allocations: 5.391 MB / 0.5524 GB, free: 3.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.149e-05/0.4683, allocations: 20 kB / 0.5524 GB, free: 3.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.006149/0.4745, allocations: 4.561 MB / 0.5569 GB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.897e-05/0.4745, allocations: 36 kB / 0.5569 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.907e-05/0.4746, allocations: 76.12 kB / 0.557 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005288/0.4751, allocations: 236.6 kB / 0.5572 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002369/0.4775, allocations: 0.8071 MB / 0.558 GB, free: 14.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003157/0.4807, allocations: 2.892 MB / 0.5608 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/0.4831, allocations: 187.8 kB / 0.561 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003156/0.4835, allocations: 224 kB / 0.5612 GB, free: 10.6 MB / 398.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.002107/0.4856, allocations: 1.508 MB / 0.5627 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002918/0.4859, allocations: 201.5 kB / 0.5629 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00292/0.4888, allocations: 1.819 MB / 0.5647 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.906e-05/0.4889, allocations: 35.92 kB / 0.5647 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4889, allocations: 0 / 0.5647 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.4889, allocations: 3.984 kB / 0.5647 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008428/0.4974, allocations: 5.181 MB / 0.5698 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.4974, allocations: 0 / 0.5698 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007655/0.4982, allocations: 179.8 kB / 0.5699 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003616/0.4986, allocations: 121 kB / 0.5701 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-05/0.4986, allocations: 24 kB / 0.5701 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002487/0.5011, allocations: 2.419 MB / 0.5724 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.5012, allocations: 0 / 0.5724 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004001/0.5052, allocations: 2.827 MB / 0.5752 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009808/0.5062, allocations: 410.5 kB / 0.5756 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.5064, allocations: 24 kB / 0.5756 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007221/0.5071, allocations: 59.86 kB / 0.5757 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.5073, allocations: 76.86 kB / 0.5758 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.791e-05/0.5074, allocations: 43.58 kB / 0.5758 GB, free: 11.37 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00223/0.5096, allocations: 1.55 MB / 0.5773 GB, free: 9.801 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5096, allocations: 0 / 0.5773 GB, free: 9.801 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002653/0.5123, allocations: 0.6197 MB / 0.5779 GB, free: 9.184 MB / 414.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.0003471/0.5126, allocations: 149.6 kB / 0.5781 GB, free: 9.039 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004479/0.5171, allocations: 2.94 MB / 0.5809 GB, free: 6.105 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.5171, allocations: 4 kB / 0.5809 GB, free: 6.102 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.5184, allocations: 0.9165 MB / 0.5818 GB, free: 5.172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/0.5201, allocations: 396.3 kB / 0.5822 GB, free: 4.805 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009917/0.53, allocations: 6.238 MB / 0.5883 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002421/0.5325, allocations: 2.472 MB / 0.5907 GB, free: 12.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006729/0.5332, allocations: 195.4 kB / 0.5909 GB, free: 11.83 MB / 430.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5332, allocations: 0 / 0.5909 GB, free: 11.83 MB / 430.1 MB Notification: Performance of Templates: time 0.06954/0.6027, allocations: 53.86 MB / 0.6435 GB, free: 6.062 MB / 478.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)