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: "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.VehicleComponents.Examples.TestAirDrag,fileNamePrefix="PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001588, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001929/0.001929, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2105/0.2105, allocations: 9.104 MB / 299.5 MB, free: 1.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 60.03 kB / 362 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.1002, allocations: 51.44 MB / 413.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.009294/0.1096, allocations: 8.21 MB / 421.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1963/0.3059, allocations: 2.652 MB / 424.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.3072, allocations: 32 kB / 424.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008594/0.3081, allocations: 348.8 kB / 424.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003054/0.3112, allocations: 1.216 MB / 425.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006811/0.3119, allocations: 267.3 kB / 426.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003119/0.315, allocations: 2.416 MB / 428.6 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.3165, allocations: 1.15 MB / 429.8 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.3178, allocations: 0.8859 MB / 430.6 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001483/0.3193, allocations: 1.311 MB / 432 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004172/0.3197, allocations: 247.3 kB / 432.2 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.321, allocations: 0.767 MB / 433 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000808/0.3218, allocations: 1.197 MB / 434.2 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.3229, allocations: 1.552 MB / 435.7 MB, free: 33.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00395/0.3269, allocations: 4.716 MB / 440.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3269, allocations: 0 / 440.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3269, allocations: 0 / 440.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.023e-05/0.327, allocations: 0 / 440.4 MB, free: 31.86 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.00623/0.3332, allocations: 3.618 MB / 444.1 MB, free: 30 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3333, allocations: 13.56 kB / 444.1 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005256/0.3338, allocations: 0.5179 MB / 444.6 MB, free: 29.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006364/0.3402, allocations: 1.755 MB / 446.3 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002694/0.3429, allocations: 1.329 MB / 447.7 MB, free: 28.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.343, allocations: 155 kB / 447.8 MB, free: 28.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004654/0.3435, allocations: 203.5 kB / 448 MB, free: 28.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009803/0.3533, allocations: 7.554 MB / 455.6 MB, free: 25.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.461e-05/0.3534, allocations: 24.75 kB / 455.6 MB, free: 25.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/0.3537, allocations: 89.8 kB / 455.7 MB, free: 25.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002494/0.3562, allocations: 1.705 MB / 457.4 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.3681, allocations: 6.844 MB / 464.2 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03126/0.3994, allocations: 22.97 MB / 487.2 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003349/0.4028, allocations: 2.151 MB / 489.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.4039, allocations: 0.7329 MB / 490.1 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004847/0.4087, allocations: 3.267 MB / 493.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.4088, allocations: 47.56 kB / 493.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 3.497e-06/0.4088, allocations: 0 / 493.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=127): time 0.007848/0.4166, allocations: 3.946 MB / 497.3 MB, free: 13.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.4167, allocations: 64.41 kB / 497.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003865/0.4206, allocations: 2.434 MB / 499.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001657/0.4208, allocations: 41.7 kB / 499.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/0.4225, allocations: 2.001 MB / 0.4901 GB, free: 9.367 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006647/0.4232, allocations: 493.4 kB / 0.4906 GB, free: 8.891 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/0.4243, allocations: 0.7243 MB / 0.4913 GB, free: 8.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4244, allocations: 301.1 kB / 0.4916 GB, free: 7.863 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.4264, allocations: 1.194 MB / 0.4928 GB, free: 6.668 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003149/0.4296, allocations: 3.241 MB / 0.4959 GB, free: 2.418 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007454/0.4371, allocations: 5.308 MB / 0.5011 GB, free: 12.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.804e-05/0.4372, allocations: 20 kB / 0.5011 GB, free: 12.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.008622/0.4458, allocations: 4.511 MB / 0.5055 GB, free: 7.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.101e-05/0.4459, allocations: 36 kB / 0.5056 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.678e-05/0.446, allocations: 72.16 kB / 0.5056 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005826/0.4466, allocations: 242.7 kB / 0.5059 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002664/0.4492, allocations: 0.7995 MB / 0.5066 GB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003652/0.4529, allocations: 2.89 MB / 0.5095 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/0.4558, allocations: 192 kB / 0.5096 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005423/0.4563, allocations: 215.9 kB / 0.5099 GB, free: 3.004 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 (431): * Single equations (assignments): 426 * 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.002902/0.4592, allocations: 1.502 MB / 0.5113 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004534/0.4597, allocations: 201.4 kB / 0.5115 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003421/0.4631, allocations: 1.777 MB / 0.5132 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001021/0.4632, allocations: 27.97 kB / 0.5133 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4633, allocations: 4 kB / 0.5133 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4633, allocations: 3.984 kB / 0.5133 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008822/0.4721, allocations: 5.104 MB / 0.5183 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/0.4722, allocations: 4 kB / 0.5183 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007295/0.4729, allocations: 167.7 kB / 0.5184 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003595/0.4733, allocations: 124.9 kB / 0.5186 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.56e-05/0.4733, allocations: 27.98 kB / 0.5186 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002596/0.4759, allocations: 2.405 MB / 0.5209 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.476, allocations: 0 / 0.5209 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004196/0.4802, allocations: 2.731 MB / 0.5236 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007994/0.481, allocations: 406.5 kB / 0.524 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002498/0.4812, allocations: 31.05 kB / 0.524 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007163/0.482, allocations: 60 kB / 0.5241 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.4821, allocations: 68.84 kB / 0.5241 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.4822, allocations: 40.17 kB / 0.5242 GB, free: 4.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002441/0.4847, allocations: 1.57 MB / 0.5257 GB, free: 2.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4847, allocations: 3.938 kB / 0.5257 GB, free: 2.426 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002921/0.4876, allocations: 0.6153 MB / 0.5263 GB, free: 1.812 MB / 398.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 (94): * Single equations (assignments): 89 * 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.004512/0.4922, allocations: 3.375 MB / 0.5296 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006616/0.4988, allocations: 3.798 MB / 0.5333 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.4988, allocations: 0 / 0.5333 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/0.5001, allocations: 0.8866 MB / 0.5342 GB, free: 9.688 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.502, allocations: 391.9 kB / 0.5346 GB, free: 9.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03901/0.541, allocations: 27.21 MB / 0.5611 GB, free: 10.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002593/0.5436, allocations: 2.468 MB / 0.5635 GB, free: 8.172 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002616/0.5463, allocations: 1.077 MB / 0.5646 GB, free: 7.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.5478, allocations: 1.206 MB / 0.5658 GB, free: 5.883 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5478, allocations: 0 / 0.5658 GB, free: 5.883 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2728/0.8205, allocations: 43.4 MB / 0.6082 GB, free: 140.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/11.15, allocations: 7.344 kB / 0.6082 GB, free: 140.2 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)