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.006356/0.006356, allocations: 95.61 kB / 15.73 MB, free: 6.055 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.001193/0.001193, allocations: 197.8 kB / 16.67 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1585/0.1585, allocations: 9.129 MB / 299.7 MB, free: 1.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 60.09 kB / 414.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2987, allocations: 51.43 MB / 466.1 MB, free: 18.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01106/0.3098, allocations: 8.198 MB / 474.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006252/0.3161, allocations: 2.666 MB / 476.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.3174, allocations: 32.38 kB / 477 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009157/0.3184, allocations: 354.1 kB / 477.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002795/0.3212, allocations: 1.211 MB / 478.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006109/0.3218, allocations: 264.2 kB / 478.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002602/0.3245, allocations: 2.431 MB / 481.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.3258, allocations: 1.153 MB / 482.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.3268, allocations: 0.8815 MB / 483.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.3283, allocations: 1.311 MB / 484.6 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004194/0.3287, allocations: 247.5 kB / 484.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.3302, allocations: 0.7707 MB / 485.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009107/0.3311, allocations: 1.206 MB / 486.8 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.3323, allocations: 1.543 MB / 488.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.3369, allocations: 4.939 MB / 493.3 MB, free: 208 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3369, allocations: 5.234 kB / 493.3 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3369, allocations: 0 / 493.3 MB, free: 204 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.296e-05/0.337, allocations: 0 / 493.3 MB, free: 204 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.008209/0.3452, allocations: 3.706 MB / 497 MB, free: 13.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3453, allocations: 8.031 kB / 497 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006536/0.3518, allocations: 1.769 MB / 498.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002965/0.3548, allocations: 1.322 MB / 0.4884 GB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.355, allocations: 156.2 kB / 0.4885 GB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004077/0.3554, allocations: 204.2 kB / 0.4887 GB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.3671, allocations: 7.558 MB / 0.4961 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.421e-05/0.3672, allocations: 15.88 kB / 0.4961 GB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002655/0.3674, allocations: 95.88 kB / 0.4962 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00287/0.3703, allocations: 1.708 MB / 0.4979 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/0.3833, allocations: 6.84 MB / 0.5045 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02952/0.4129, allocations: 22.94 MB / 0.5269 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003453/0.4164, allocations: 2.034 MB / 0.5289 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.4176, allocations: 0.7662 MB / 0.5297 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00451/0.4221, allocations: 2.85 MB / 0.5325 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.531e-05/0.4222, allocations: 39.56 kB / 0.5325 GB, free: 11.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 4.238e-06/0.4222, allocations: 4 kB / 0.5325 GB, free: 11.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.008087/0.4303, allocations: 4.073 MB / 0.5365 GB, free: 7.527 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.4303, allocations: 64.41 kB / 0.5365 GB, free: 7.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/0.4339, allocations: 2.406 MB / 0.5389 GB, free: 5.008 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.482e-05/0.434, allocations: 45.69 kB / 0.5389 GB, free: 4.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001634/0.4357, allocations: 2.075 MB / 0.541 GB, free: 2.859 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005105/0.4362, allocations: 0.5193 MB / 0.5415 GB, free: 2.336 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001028/0.4372, allocations: 0.7347 MB / 0.5422 GB, free: 1.594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4374, allocations: 305.1 kB / 0.5425 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001869/0.4392, allocations: 1.213 MB / 0.5437 GB, free: 80 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003712/0.443, allocations: 3.269 MB / 0.5468 GB, free: 11.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007816/0.4508, allocations: 5.385 MB / 0.5521 GB, free: 5.406 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.965e-05/0.4509, allocations: 20 kB / 0.5521 GB, free: 5.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.007849/0.4587, allocations: 4.587 MB / 0.5566 GB, free: 0.793 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.514e-05/0.4588, allocations: 37.56 kB / 0.5566 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.961e-05/0.4589, allocations: 72 kB / 0.5567 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005871/0.4595, allocations: 232.7 kB / 0.5569 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002501/0.462, allocations: 0.8111 MB / 0.5577 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003276/0.4653, allocations: 2.894 MB / 0.5605 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002558/0.4679, allocations: 187.9 kB / 0.5607 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000316/0.4682, allocations: 216 kB / 0.5609 GB, free: 12.21 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.002667/0.4709, allocations: 1.512 MB / 0.5624 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003393/0.4712, allocations: 214.5 kB / 0.5626 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003229/0.4745, allocations: 1.81 MB / 0.5644 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.495e-05/0.4746, allocations: 23.98 kB / 0.5644 GB, free: 8.633 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4746, allocations: 4 kB / 0.5644 GB, free: 8.629 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.4746, allocations: 3.984 kB / 0.5644 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008354/0.483, allocations: 5.191 MB / 0.5695 GB, free: 3.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-06/0.483, allocations: 4 kB / 0.5695 GB, free: 3.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007144/0.4837, allocations: 172 kB / 0.5697 GB, free: 3.141 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003538/0.4841, allocations: 128.7 kB / 0.5698 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.761e-05/0.4842, allocations: 27.94 kB / 0.5698 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00232/0.4865, allocations: 2.4 MB / 0.5721 GB, free: 452 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.4865, allocations: 12 kB / 0.5722 GB, free: 440 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00386/0.4904, allocations: 2.84 MB / 0.5749 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008882/0.4913, allocations: 423.6 kB / 0.5753 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/0.4916, allocations: 24 kB / 0.5754 GB, free: 13.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007205/0.4923, allocations: 67.86 kB / 0.5754 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.4924, allocations: 60.92 kB / 0.5755 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/0.4925, allocations: 43.98 kB / 0.5755 GB, free: 12.92 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002425/0.495, allocations: 1.55 MB / 0.577 GB, free: 11.35 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.495, allocations: 3.938 kB / 0.577 GB, free: 11.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002884/0.4979, allocations: 0.6171 MB / 0.5776 GB, free: 10.73 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.00035/0.4982, allocations: 155 kB / 0.5778 GB, free: 10.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00482/0.503, allocations: 2.942 MB / 0.5807 GB, free: 7.613 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.5031, allocations: 0 / 0.5807 GB, free: 7.613 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001313/0.5044, allocations: 0.9226 MB / 0.5816 GB, free: 6.684 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/0.5065, allocations: 399.8 kB / 0.5819 GB, free: 6.301 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.517, allocations: 5.992 MB / 0.5878 GB, free: 252 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2591/0.7761, allocations: 2.462 MB / 0.5902 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003785/0.78, allocations: 1.101 MB / 0.5913 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000519/0.7805, allocations: 155.2 kB / 0.5914 GB, free: 111.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7805, allocations: 0 / 0.5914 GB, free: 111.8 MB / 462.1 MB Notification: Performance of Templates: time 0.04438/0.8249, allocations: 23.24 MB / 0.6141 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)