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.001147/0.001147, allocations: 104.9 kB / 16.4 MB, free: 6.379 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.001156/0.001157, allocations: 184.3 kB / 17.33 MB, free: 5.852 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.197/1.197, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04087/0.04087, allocations: 9.119 MB / 300.3 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 63.89 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07242/0.07349, allocations: 51.46 MB / 466.7 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.00776/0.08128, allocations: 8.184 MB / 474.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004034/0.08534, allocations: 2.671 MB / 477.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005157/0.08587, allocations: 31.94 kB / 477.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006469/0.08655, allocations: 349.7 kB / 478 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002061/0.08862, allocations: 1.237 MB / 479.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.08908, allocations: 271.6 kB / 479.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002035/0.09113, allocations: 2.432 MB / 481.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001125/0.09226, allocations: 1.146 MB / 483.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008104/0.09308, allocations: 0.8951 MB / 483.9 MB, free: 340 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001222/0.09431, allocations: 1.316 MB / 485.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002944/0.09462, allocations: 248 kB / 485.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009508/0.09557, allocations: 0.7684 MB / 486.3 MB, free: 14 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008302/0.09641, allocations: 1.2 MB / 487.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.09753, allocations: 1.542 MB / 489 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00373/0.1013, allocations: 4.925 MB / 493.9 MB, free: 6.305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.1013, allocations: 4 kB / 493.9 MB, free: 6.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1013, allocations: 3.938 kB / 493.9 MB, free: 6.297 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.448e-05/0.1013, allocations: 0 / 493.9 MB, free: 6.297 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.00556/0.1069, allocations: 3.616 MB / 497.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.1069, allocations: 11.97 kB / 497.6 MB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005956/0.1129, allocations: 1.752 MB / 499.3 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.1147, allocations: 1.326 MB / 0.4889 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.1149, allocations: 152.2 kB / 0.4891 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003399/0.1152, allocations: 200.2 kB / 0.4893 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009101/0.1243, allocations: 7.558 MB / 0.4966 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.075e-05/0.1244, allocations: 23.86 kB / 0.4967 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002533/0.1247, allocations: 95.88 kB / 0.4967 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002492/0.1272, allocations: 1.708 MB / 0.4984 GB, free: 5.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1785/0.3056, allocations: 6.831 MB / 0.5051 GB, free: 40.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02529/0.331, allocations: 22.88 MB / 0.5274 GB, free: 25.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00285/0.3339, allocations: 2.018 MB / 0.5294 GB, free: 24.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009667/0.3349, allocations: 0.7715 MB / 0.5302 GB, free: 23.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00337/0.3382, allocations: 2.847 MB / 0.5329 GB, free: 21.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.3383, allocations: 40.19 kB / 0.533 GB, free: 21.47 MB / 382.1 MB Notification: Performance of pre-optimization done (n=118): time 3.287e-06/0.3383, allocations: 0 / 0.533 GB, free: 21.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.006092/0.3444, allocations: 4.026 MB / 0.5369 GB, free: 19.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.366e-05/0.3444, allocations: 67.53 kB / 0.537 GB, free: 19.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002251/0.3467, allocations: 2.4 MB / 0.5393 GB, free: 18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/0.3467, allocations: 41.58 kB / 0.5394 GB, free: 17.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006406/0.3474, allocations: 2.001 MB / 0.5413 GB, free: 16.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.3476, allocations: 0.4968 MB / 0.5418 GB, free: 15.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006331/0.3483, allocations: 0.7342 MB / 0.5425 GB, free: 15.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.205e-05/0.3483, allocations: 305.1 kB / 0.5428 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.3497, allocations: 1.212 MB / 0.544 GB, free: 14.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.3517, allocations: 3.27 MB / 0.5472 GB, free: 10.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00499/0.3567, allocations: 5.391 MB / 0.5524 GB, free: 3.789 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.166e-05/0.3567, allocations: 25.97 kB / 0.5525 GB, free: 3.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.005341/0.362, allocations: 4.553 MB / 0.5569 GB, free: 15.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/0.3621, allocations: 36 kB / 0.557 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.885e-05/0.3622, allocations: 72 kB / 0.557 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004978/0.3627, allocations: 240.5 kB / 0.5572 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/0.3648, allocations: 0.8191 MB / 0.558 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003003/0.3678, allocations: 2.875 MB / 0.5609 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/0.37, allocations: 199.9 kB / 0.561 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002754/0.3703, allocations: 219.9 kB / 0.5613 GB, free: 10.63 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.001941/0.3722, allocations: 1.506 MB / 0.5627 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002474/0.3725, allocations: 203 kB / 0.5629 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002731/0.3752, allocations: 1.818 MB / 0.5647 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.485e-05/0.3753, allocations: 23.98 kB / 0.5647 GB, free: 7.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3753, allocations: 4 kB / 0.5647 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.3753, allocations: 7.969 kB / 0.5647 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007235/0.3826, allocations: 5.185 MB / 0.5698 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.3826, allocations: 4.281 kB / 0.5698 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006973/0.3833, allocations: 179.7 kB / 0.57 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003163/0.3836, allocations: 117.1 kB / 0.5701 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-05/0.3837, allocations: 27.98 kB / 0.5701 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/0.3859, allocations: 2.413 MB / 0.5725 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3859, allocations: 4.031 kB / 0.5725 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003652/0.3896, allocations: 2.822 MB / 0.5752 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005678/0.3902, allocations: 418.5 kB / 0.5756 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/0.3904, allocations: 23.94 kB / 0.5756 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006765/0.3911, allocations: 51.94 kB / 0.5757 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.3912, allocations: 76.78 kB / 0.5758 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.845e-05/0.3913, allocations: 35.98 kB / 0.5758 GB, free: 11.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001876/0.3932, allocations: 1.55 MB / 0.5773 GB, free: 9.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3932, allocations: 4 kB / 0.5773 GB, free: 9.836 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002145/0.3953, allocations: 0.6259 MB / 0.5779 GB, free: 9.219 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.0002687/0.3956, allocations: 145.7 kB / 0.5781 GB, free: 9.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004079/0.3997, allocations: 2.949 MB / 0.581 GB, free: 6.133 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3997, allocations: 0 / 0.581 GB, free: 6.133 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4009, allocations: 0.915 MB / 0.5818 GB, free: 5.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001542/0.4024, allocations: 394.6 kB / 0.5822 GB, free: 4.836 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008579/0.411, allocations: 6.253 MB / 0.5883 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002225/0.4133, allocations: 2.472 MB / 0.5907 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005435/0.4138, allocations: 183.4 kB / 0.5909 GB, free: 11.88 MB / 430.1 MB Notification: Performance of SimCode: time 4e-07/0.4138, allocations: 4 kB / 0.5909 GB, free: 11.87 MB / 430.1 MB Notification: Performance of Templates: time 0.05947/0.4733, allocations: 53.86 MB / 0.6435 GB, free: 6.102 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)