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.0009225/0.0009225, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.005869/0.00587, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.375/1.375, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1819/0.1819, allocations: 9.121 MB / 300.5 MB, free: 2.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003984, allocations: 8 kB / 363.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0988/0.09922, allocations: 52.42 MB / 416.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.1974/0.2967, allocations: 18.74 MB / 434.9 MB, free: 32.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009221/0.306, allocations: 4.717 MB / 439.6 MB, free: 30.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003229/0.3092, allocations: 71.53 kB / 439.7 MB, free: 30.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009411/0.3102, allocations: 299.2 kB / 440 MB, free: 30.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002779/0.313, allocations: 1.116 MB / 441.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006215/0.3136, allocations: 247.1 kB / 441.3 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00323/0.3169, allocations: 3.294 MB / 444.6 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00172/0.3186, allocations: 0.9952 MB / 445.6 MB, free: 29.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.3199, allocations: 0.7173 MB / 446.3 MB, free: 28.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.3216, allocations: 1.271 MB / 447.6 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006235/0.3222, allocations: 132 kB / 447.7 MB, free: 28.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001449/0.3237, allocations: 0.6819 MB / 448.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.3249, allocations: 1.106 MB / 449.5 MB, free: 27.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001731/0.3267, allocations: 1.437 MB / 450.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003921/0.3306, allocations: 4.457 MB / 455.4 MB, free: 25.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.3306, allocations: 0 / 455.4 MB, free: 25.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3306, allocations: 0 / 455.4 MB, free: 25.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.28e-05/0.3307, allocations: 0 / 455.4 MB, free: 25.44 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.005555/0.3363, allocations: 3.017 MB / 458.4 MB, free: 23.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3363, allocations: 10.03 kB / 458.4 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006317/0.3426, allocations: 1.798 MB / 460.2 MB, free: 23.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.3446, allocations: 1.316 MB / 461.5 MB, free: 22.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.591e-05/0.3447, allocations: 154.8 kB / 461.7 MB, free: 22.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004034/0.3451, allocations: 200.4 kB / 461.9 MB, free: 22.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/0.356, allocations: 7.55 MB / 469.4 MB, free: 19.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.089e-05/0.3562, allocations: 25.47 kB / 469.5 MB, free: 19.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003075/0.3565, allocations: 93.02 kB / 469.6 MB, free: 19.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00307/0.3596, allocations: 1.71 MB / 471.3 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01646/0.376, allocations: 6.837 MB / 478.1 MB, free: 16.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03495/0.411, allocations: 22.99 MB / 0.4894 GB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004017/0.4151, allocations: 2.011 MB / 0.4913 GB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.4165, allocations: 0.7668 MB / 0.4921 GB, free: 11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005079/0.4216, allocations: 2.856 MB / 0.4949 GB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.538e-05/0.4217, allocations: 39.56 kB / 0.4949 GB, free: 7.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 4.529e-06/0.4217, allocations: 4 kB / 0.4949 GB, free: 7.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.009197/0.4309, allocations: 4.025 MB / 0.4988 GB, free: 3.887 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.431, allocations: 64.41 kB / 0.4989 GB, free: 3.812 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005981/0.437, allocations: 2.409 MB / 0.5012 GB, free: 1.363 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000205/0.4373, allocations: 41.7 kB / 0.5013 GB, free: 1.316 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001556/0.4388, allocations: 2 MB / 0.5032 GB, free: 15.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005795/0.4394, allocations: 0.4896 MB / 0.5037 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004263/0.4399, allocations: 301.6 kB / 0.504 GB, free: 14.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.44, allocations: 305.1 kB / 0.5043 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.4425, allocations: 1.217 MB / 0.5055 GB, free: 12.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003532/0.4461, allocations: 3.261 MB / 0.5087 GB, free: 8.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008856/0.455, allocations: 5.398 MB / 0.5139 GB, free: 2.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.876e-05/0.4551, allocations: 20 kB / 0.514 GB, free: 2.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.009697/0.4648, allocations: 4.567 MB / 0.5184 GB, free: 13.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.86e-05/0.4649, allocations: 36 kB / 0.5185 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.465, allocations: 72 kB / 0.5185 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/0.4656, allocations: 232.7 kB / 0.5187 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/0.4682, allocations: 0.811 MB / 0.5195 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/0.4715, allocations: 2.658 MB / 0.5221 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/0.4741, allocations: 187.9 kB / 0.5223 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003358/0.4744, allocations: 220 kB / 0.5225 GB, free: 9.359 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.002703/0.4771, allocations: 1.508 MB / 0.524 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002892/0.4774, allocations: 197.4 kB / 0.5242 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003207/0.4806, allocations: 1.822 MB / 0.526 GB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001062/0.4808, allocations: 23.98 kB / 0.526 GB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.4808, allocations: 0 / 0.526 GB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4808, allocations: 3.984 kB / 0.526 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009716/0.4905, allocations: 5.211 MB / 0.5311 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.4906, allocations: 4 kB / 0.5311 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007732/0.4913, allocations: 179.7 kB / 0.5312 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003719/0.4917, allocations: 120.8 kB / 0.5314 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.798e-05/0.4918, allocations: 28.27 kB / 0.5314 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/0.4945, allocations: 2.198 MB / 0.5335 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.4945, allocations: 3.984 kB / 0.5335 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00465/0.4991, allocations: 2.821 MB / 0.5363 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001128/0.5003, allocations: 426.3 kB / 0.5367 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000508/0.5008, allocations: 23.98 kB / 0.5367 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008763/0.5017, allocations: 51.94 kB / 0.5368 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001606/0.5019, allocations: 76.84 kB / 0.5368 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.308e-05/0.502, allocations: 43.98 kB / 0.5369 GB, free: 10.28 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002516/0.5045, allocations: 1.546 MB / 0.5384 GB, free: 8.715 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5045, allocations: 0 / 0.5384 GB, free: 8.715 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003609/0.5081, allocations: 0.6172 MB / 0.539 GB, free: 8.098 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.0004522/0.5086, allocations: 159 kB / 0.5392 GB, free: 7.934 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005764/0.5144, allocations: 2.918 MB / 0.542 GB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.5144, allocations: 384 / 0.542 GB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.516, allocations: 0.9178 MB / 0.5429 GB, free: 4.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002853/0.5189, allocations: 361.3 kB / 0.5432 GB, free: 3.742 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.5328, allocations: 7.492 MB / 0.5506 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003123/0.5359, allocations: 2.464 MB / 0.553 GB, free: 9.715 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003081/0.539, allocations: 1.101 MB / 0.554 GB, free: 8.609 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004985/0.5396, allocations: 155.4 kB / 0.5542 GB, free: 8.457 MB / 430.1 MB Notification: Performance of SimCode: time 1.303e-06/0.5396, allocations: 0 / 0.5542 GB, free: 8.457 MB / 430.1 MB Notification: Performance of Templates: time 0.04788/0.5875, allocations: 22.52 MB / 0.5762 GB, free: 2.059 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)