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.006586/0.006586, allocations: 102 kB / 15.73 MB, free: 6.035 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.001136/0.001136, allocations: 196.2 kB / 16.68 MB, free: 5.953 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04363/0.04363, allocations: 9.13 MB / 299.7 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 67.89 kB / 414.6 MB, free: 21.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1136, allocations: 51.44 MB / 466.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01317/0.1268, allocations: 8.196 MB / 474.3 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006597/0.1335, allocations: 2.667 MB / 476.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.1345, allocations: 31.94 kB / 477 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009704/0.1355, allocations: 361.6 kB / 477.3 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00348/0.139, allocations: 1.233 MB / 478.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008246/0.1399, allocations: 275.6 kB / 478.8 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003735/0.1436, allocations: 2.423 MB / 481.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001873/0.1455, allocations: 1.146 MB / 482.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001496/0.147, allocations: 0.8951 MB / 483.3 MB, free: 360 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002154/0.1492, allocations: 1.32 MB / 484.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005656/0.1498, allocations: 248 kB / 484.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.1516, allocations: 0.7568 MB / 485.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001501/0.1531, allocations: 1.212 MB / 486.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001951/0.1551, allocations: 1.538 MB / 488.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006464/0.1616, allocations: 4.929 MB / 493.3 MB, free: 6.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.1616, allocations: 7.938 kB / 493.3 MB, free: 6.312 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1616, allocations: 0 / 493.3 MB, free: 6.312 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.578e-05/0.1617, allocations: 0 / 493.3 MB, free: 6.312 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.009061/0.1708, allocations: 3.616 MB / 496.9 MB, free: 2.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.1708, allocations: 16.03 kB / 496.9 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006238/0.1771, allocations: 1.744 MB / 498.7 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002743/0.1798, allocations: 1.322 MB / 500 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.18, allocations: 152.1 kB / 0.4884 GB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003828/0.1804, allocations: 204.2 kB / 0.4886 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01032/0.1907, allocations: 7.562 MB / 0.496 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.269e-05/0.1908, allocations: 15.88 kB / 0.496 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002729/0.1911, allocations: 95.88 kB / 0.4961 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002761/0.1938, allocations: 1.708 MB / 0.4978 GB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2605/0.4543, allocations: 6.831 MB / 0.5044 GB, free: 39.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03456/0.4889, allocations: 22.89 MB / 0.5268 GB, free: 25.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003772/0.4928, allocations: 2.012 MB / 0.5288 GB, free: 23.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001105/0.4939, allocations: 0.7694 MB / 0.5295 GB, free: 23.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004553/0.4985, allocations: 2.848 MB / 0.5323 GB, free: 21.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.4985, allocations: 40.48 kB / 0.5323 GB, free: 21.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=118): time 3.837e-06/0.4985, allocations: 3.938 kB / 0.5323 GB, free: 21.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.007015/0.5056, allocations: 4.024 MB / 0.5363 GB, free: 19.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.5056, allocations: 67.45 kB / 0.5363 GB, free: 19.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002629/0.5083, allocations: 2.401 MB / 0.5387 GB, free: 17.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.304e-05/0.5083, allocations: 45.67 kB / 0.5387 GB, free: 17.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000882/0.5092, allocations: 2.001 MB / 0.5407 GB, free: 15.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003195/0.5096, allocations: 0.4974 MB / 0.5412 GB, free: 15.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007486/0.5103, allocations: 0.7226 MB / 0.5419 GB, free: 15.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.65e-05/0.5104, allocations: 308.5 kB / 0.5422 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.5119, allocations: 1.21 MB / 0.5433 GB, free: 14.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002205/0.5141, allocations: 3.27 MB / 0.5465 GB, free: 10.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005776/0.5199, allocations: 5.396 MB / 0.5518 GB, free: 3.656 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.17e-05/0.5199, allocations: 24 kB / 0.5518 GB, free: 3.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=473) (initialization): time 0.006343/0.5263, allocations: 4.562 MB / 0.5563 GB, free: 15.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.775e-05/0.5264, allocations: 38.19 kB / 0.5563 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.979e-05/0.5265, allocations: 72.88 kB / 0.5564 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005461/0.527, allocations: 240.6 kB / 0.5566 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002269/0.5293, allocations: 0.811 MB / 0.5574 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003309/0.5326, allocations: 2.881 MB / 0.5602 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002467/0.5351, allocations: 187.9 kB / 0.5604 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002793/0.5354, allocations: 225.3 kB / 0.5606 GB, free: 10.5 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.002304/0.5377, allocations: 1.51 MB / 0.5621 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002973/0.538, allocations: 205.3 kB / 0.5623 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002955/0.541, allocations: 1.814 MB / 0.5641 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.595e-05/0.5411, allocations: 23.98 kB / 0.5641 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.5411, allocations: 4 kB / 0.5641 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.5411, allocations: 11.97 kB / 0.5641 GB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008696/0.5498, allocations: 5.184 MB / 0.5692 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.5499, allocations: 4 kB / 0.5692 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007705/0.5506, allocations: 175.8 kB / 0.5693 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003922/0.5511, allocations: 121.1 kB / 0.5694 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.064e-05/0.5511, allocations: 24 kB / 0.5695 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002987/0.5541, allocations: 2.411 MB / 0.5718 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.5542, allocations: 8.062 kB / 0.5718 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004503/0.5587, allocations: 2.819 MB / 0.5746 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/0.56, allocations: 414.5 kB / 0.575 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/0.5603, allocations: 31.77 kB / 0.575 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007173/0.561, allocations: 51.94 kB / 0.5751 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.5612, allocations: 72.91 kB / 0.5751 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.81e-05/0.5613, allocations: 39.98 kB / 0.5752 GB, free: 11.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002359/0.5636, allocations: 1.55 MB / 0.5767 GB, free: 9.703 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5637, allocations: 0 / 0.5767 GB, free: 9.703 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002955/0.5666, allocations: 0.6197 MB / 0.5773 GB, free: 9.086 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.0003507/0.567, allocations: 156.2 kB / 0.5774 GB, free: 8.934 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004841/0.5718, allocations: 2.942 MB / 0.5803 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5719, allocations: 0 / 0.5803 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.5731, allocations: 0.9168 MB / 0.5812 GB, free: 5.066 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.5748, allocations: 394.5 kB / 0.5816 GB, free: 4.699 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009389/0.5842, allocations: 5.902 MB / 0.5873 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002489/0.5868, allocations: 2.468 MB / 0.5898 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002538/0.5893, allocations: 1.085 MB / 0.5908 GB, free: 11.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003947/0.5897, allocations: 155.4 kB / 0.591 GB, free: 11.04 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5897, allocations: 0 / 0.591 GB, free: 11.04 MB / 430.1 MB Notification: Performance of Templates: time 0.04794/0.6377, allocations: 23.24 MB / 0.6137 GB, free: 3.93 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)