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.001117/0.001117, allocations: 106.9 kB / 16.36 MB, free: 5.875 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.001072/0.001072, allocations: 199.2 kB / 17.3 MB, free: 5.516 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.311/1.311, 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.04386/0.04386, allocations: 9.112 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 67.89 kB / 363.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.239, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.00698/0.246, allocations: 8.202 MB / 423 MB, free: 16.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004765/0.2508, allocations: 2.667 MB / 425.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.2521, allocations: 31.94 kB / 425.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000805/0.253, allocations: 353.7 kB / 426 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002644/0.2557, allocations: 1.214 MB / 427.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005175/0.2562, allocations: 267.6 kB / 427.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002234/0.2585, allocations: 2.435 MB / 430 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001031/0.2595, allocations: 1.145 MB / 431.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007441/0.2603, allocations: 0.8795 MB / 432 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/0.2613, allocations: 1.327 MB / 433.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002398/0.2616, allocations: 248 kB / 433.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009988/0.2626, allocations: 0.7607 MB / 434.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007077/0.2633, allocations: 1.2 MB / 435.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001057/0.2643, allocations: 1.542 MB / 437.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004094/0.2684, allocations: 4.911 MB / 442 MB, free: 13.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2685, allocations: 0 / 442 MB, free: 13.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2685, allocations: 0 / 442 MB, free: 13.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.9e-05/0.2686, allocations: 0 / 442 MB, free: 13.59 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: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.007572/0.2762, allocations: 3.623 MB / 445.6 MB, free: 9.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.2762, allocations: 8.031 kB / 445.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006266/0.2825, allocations: 1.752 MB / 447.3 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003141/0.2857, allocations: 1.318 MB / 448.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.2858, allocations: 160.2 kB / 448.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003863/0.2862, allocations: 196.1 kB / 449 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01041/0.2966, allocations: 7.562 MB / 456.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-05/0.2967, allocations: 27.8 kB / 456.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002514/0.297, allocations: 87.89 kB / 456.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00255/0.2996, allocations: 1.711 MB / 458.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01219/0.3118, allocations: 6.828 MB / 465.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03158/0.3434, allocations: 22.89 MB / 488.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003377/0.3468, allocations: 2.014 MB / 490.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.348, allocations: 0.7758 MB / 490.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004676/0.3526, allocations: 2.851 MB / 493.8 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.3527, allocations: 43.55 kB / 493.8 MB, free: 8.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.025e-06/0.3527, allocations: 0 / 493.8 MB, free: 8.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.008095/0.3608, allocations: 4.018 MB / 497.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.3609, allocations: 64.41 kB / 497.9 MB, free: 4.355 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00348/0.3644, allocations: 2.409 MB / 0.4886 GB, free: 1.906 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.997e-05/0.3645, allocations: 45.64 kB / 0.4886 GB, free: 1.855 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.3659, allocations: 2 MB / 0.4906 GB, free: 15.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004624/0.3664, allocations: 0.4935 MB / 0.491 GB, free: 15.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009463/0.3673, allocations: 0.7302 MB / 0.4918 GB, free: 14.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.958e-05/0.3674, allocations: 301.1 kB / 0.492 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/0.3693, allocations: 1.213 MB / 0.4932 GB, free: 13.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003193/0.3725, allocations: 3.265 MB / 0.4964 GB, free: 8.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007583/0.3801, allocations: 5.39 MB / 0.5017 GB, free: 2.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-05/0.3802, allocations: 23.98 kB / 0.5017 GB, free: 2.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.2325/0.6127, allocations: 4.562 MB / 0.5062 GB, free: 84.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.078e-05/0.6128, allocations: 39.66 kB / 0.5062 GB, free: 84.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.379e-05/0.6129, allocations: 77.59 kB / 0.5063 GB, free: 84.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006098/0.6135, allocations: 230.2 kB / 0.5065 GB, free: 84.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002369/0.6159, allocations: 0.8069 MB / 0.5073 GB, free: 84.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002839/0.6187, allocations: 2.891 MB / 0.5101 GB, free: 82.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.6215, allocations: 186.7 kB / 0.5103 GB, free: 82.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000468/0.622, allocations: 221.2 kB / 0.5105 GB, free: 82.8 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 (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.002749/0.6247, allocations: 1.5 MB / 0.512 GB, free: 82.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003588/0.6251, allocations: 200 kB / 0.5122 GB, free: 82.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002773/0.6279, allocations: 1.821 MB / 0.5139 GB, free: 81.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.721e-05/0.628, allocations: 27.56 kB / 0.514 GB, free: 81.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.628, allocations: 3.5 kB / 0.514 GB, free: 81.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.628, allocations: 10.17 kB / 0.514 GB, free: 81.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008081/0.6361, allocations: 5.191 MB / 0.519 GB, free: 79.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.6362, allocations: 3.906 kB / 0.519 GB, free: 79.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/0.6368, allocations: 178.8 kB / 0.5192 GB, free: 79.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003304/0.6372, allocations: 124.2 kB / 0.5193 GB, free: 79.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.945e-05/0.6373, allocations: 29.97 kB / 0.5194 GB, free: 79.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001962/0.6392, allocations: 2.406 MB / 0.5217 GB, free: 77.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6392, allocations: 4.031 kB / 0.5217 GB, free: 77.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003334/0.6426, allocations: 2.829 MB / 0.5245 GB, free: 76.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008894/0.6435, allocations: 411.1 kB / 0.5249 GB, free: 75.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/0.6437, allocations: 26.77 kB / 0.5249 GB, free: 75.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006584/0.6444, allocations: 57.61 kB / 0.5249 GB, free: 75.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.6445, allocations: 67.91 kB / 0.525 GB, free: 75.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.6446, allocations: 35.8 kB / 0.525 GB, free: 75.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001878/0.6465, allocations: 1.555 MB / 0.5266 GB, free: 74.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6465, allocations: 0 / 0.5266 GB, free: 74.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002689/0.6492, allocations: 0.6194 MB / 0.5272 GB, free: 73.75 MB / 382.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.0002668/0.6495, allocations: 147.6 kB / 0.5273 GB, free: 73.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003868/0.6533, allocations: 2.95 MB / 0.5302 GB, free: 70.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.748e-06/0.6534, allocations: 5.25 kB / 0.5302 GB, free: 70.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.6544, allocations: 0.9105 MB / 0.5311 GB, free: 69.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/0.656, allocations: 397.6 kB / 0.5315 GB, free: 69.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008834/0.6648, allocations: 5.912 MB / 0.5372 GB, free: 63.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/0.6668, allocations: 2.464 MB / 0.5396 GB, free: 61.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00221/0.6691, allocations: 1.089 MB / 0.5407 GB, free: 60.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003547/0.6694, allocations: 155.4 kB / 0.5409 GB, free: 59.93 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6694, allocations: 0 / 0.5409 GB, free: 59.93 MB / 382.1 MB Notification: Performance of Templates: time 0.03577/0.7052, allocations: 21.93 MB / 0.5623 GB, free: 38.18 MB / 382.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)