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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-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: "" <> 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.001005/0.001005, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001102/0.001102, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1668/0.1668, allocations: 9.103 MB / 300.1 MB, free: 2.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003991, allocations: 4 kB / 363.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1096, allocations: 52.43 MB / 415.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.2395/0.3491, allocations: 16.46 MB / 432 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01007/0.3593, allocations: 4.689 MB / 436.7 MB, free: 32.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003766/0.3631, allocations: 68.12 kB / 436.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002751/0.3658, allocations: 0.7753 MB / 437.5 MB, free: 32.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007611/0.3735, allocations: 2.463 MB / 440 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.3747, allocations: 219 kB / 440.2 MB, free: 31.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002418/0.3771, allocations: 1.355 MB / 441.5 MB, free: 30.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.3783, allocations: 0.9461 MB / 442.5 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007407/0.379, allocations: 0.6481 MB / 443.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009362/0.38, allocations: 0.9677 MB / 444.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002316/0.3802, allocations: 127.8 kB / 444.2 MB, free: 29.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.3813, allocations: 0.5821 MB / 444.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007331/0.382, allocations: 1.001 MB / 445.8 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004211/0.3825, allocations: 0.6165 MB / 446.4 MB, free: 28.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002693/0.3852, allocations: 3.649 MB / 450.1 MB, free: 28.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.716e-06/0.3852, allocations: 0 / 450.1 MB, free: 28.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.3852, allocations: 3.562 kB / 450.1 MB, free: 28.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.127e-05/0.3853, allocations: 3 kB / 450.1 MB, free: 28.17 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.005647/0.3909, allocations: 3.072 MB / 453.2 MB, free: 26.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.391, allocations: 13.16 kB / 453.2 MB, free: 26.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007639/0.3918, allocations: 0.5143 MB / 453.7 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007072/0.3988, allocations: 2.161 MB / 455.8 MB, free: 25.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003084/0.402, allocations: 1.302 MB / 457.1 MB, free: 25.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.4021, allocations: 155.4 kB / 457.3 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004856/0.4026, allocations: 202.7 kB / 457.5 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0105/0.4131, allocations: 7.539 MB / 465 MB, free: 21.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-05/0.4132, allocations: 25.06 kB / 465.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/0.4135, allocations: 93.17 kB / 465.2 MB, free: 21.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003065/0.4166, allocations: 1.707 MB / 466.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0141/0.4307, allocations: 6.825 MB / 473.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03348/0.4642, allocations: 22.97 MB / 496.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003288/0.4676, allocations: 2.15 MB / 498.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007556/0.4683, allocations: 0.6808 MB / 499.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.4684, allocations: 47.48 kB / 499.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=130): time 3.086e-06/0.4684, allocations: 0 / 499.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.009323/0.4777, allocations: 4.652 MB / 0.4924 GB, free: 9.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.4778, allocations: 68.36 kB / 0.4924 GB, free: 9.906 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0033/0.4811, allocations: 2.357 MB / 0.4947 GB, free: 7.508 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.503e-05/0.4812, allocations: 45.7 kB / 0.4948 GB, free: 7.457 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001259/0.4825, allocations: 1.961 MB / 0.4967 GB, free: 5.465 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/0.4829, allocations: 0.5281 MB / 0.4972 GB, free: 4.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.483, allocations: 72 kB / 0.4973 GB, free: 4.859 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000233/0.4833, allocations: 461.9 kB / 0.4977 GB, free: 4.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001852/0.4851, allocations: 1.206 MB / 0.4989 GB, free: 3.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003139/0.4883, allocations: 3.258 MB / 0.5021 GB, free: 14.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002914/0.4912, allocations: 1.985 MB / 0.504 GB, free: 12.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.049e-05/0.4913, allocations: 27.94 kB / 0.504 GB, free: 12.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=475) (initialization): time 0.007435/0.4987, allocations: 4.544 MB / 0.5085 GB, free: 8.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.281e-05/0.4988, allocations: 36 kB / 0.5085 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-05/0.4989, allocations: 72 kB / 0.5086 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006675/0.4996, allocations: 254 kB / 0.5088 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00277/0.5024, allocations: 0.8071 MB / 0.5096 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003309/0.5057, allocations: 2.692 MB / 0.5122 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003109/0.5088, allocations: 188 kB / 0.5124 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006067/0.5094, allocations: 224 kB / 0.5126 GB, free: 3.965 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 (438): * Single equations (assignments): 433 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004527/0.514, allocations: 1.505 MB / 0.5141 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004364/0.5144, allocations: 201.4 kB / 0.5143 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003576/0.518, allocations: 2.09 MB / 0.5163 GB, free: 132 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/0.5181, allocations: 23.98 kB / 0.5164 GB, free: 108 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.5181, allocations: 4 kB / 0.5164 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/0.5182, allocations: 7.969 kB / 0.5164 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.5288, allocations: 5.589 MB / 0.5218 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.5289, allocations: 4 kB / 0.5218 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008299/0.5297, allocations: 199.7 kB / 0.522 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003904/0.5301, allocations: 124.6 kB / 0.5221 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.171e-05/0.5302, allocations: 32.05 kB / 0.5222 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002783/0.533, allocations: 2.225 MB / 0.5243 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.533, allocations: 4 kB / 0.5244 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005148/0.5382, allocations: 3.287 MB / 0.5276 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001163/0.5394, allocations: 430.3 kB / 0.528 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002289/0.5396, allocations: 31.98 kB / 0.528 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007771/0.5404, allocations: 55.92 kB / 0.5281 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.5406, allocations: 88.86 kB / 0.5281 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.376e-05/0.5407, allocations: 43.98 kB / 0.5282 GB, free: 3.492 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002609/0.5433, allocations: 1.531 MB / 0.5297 GB, free: 1.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5433, allocations: 0 / 0.5297 GB, free: 1.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003139/0.5464, allocations: 0.6249 MB / 0.5303 GB, free: 1.316 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (108): * Single equations (assignments): 103 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005199/0.5516, allocations: 4.927 MB / 0.5351 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005008/0.5567, allocations: 2.959 MB / 0.538 GB, free: 9.293 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.5567, allocations: 0 / 0.538 GB, free: 9.293 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.5581, allocations: 0.9661 MB / 0.5389 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.5599, allocations: 356.6 kB / 0.5393 GB, free: 7.977 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2986/0.8586, allocations: 68.64 MB / 0.6063 GB, free: 89.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002282/0.8609, allocations: 2.525 MB / 0.6088 GB, free: 88.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002813/0.8637, allocations: 1.139 MB / 0.6099 GB, free: 88.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/0.8653, allocations: 1.208 MB / 0.6111 GB, free: 88.61 MB / 446.1 MB Notification: Performance of SimCode: time 8.01e-07/0.8654, allocations: 1.75 kB / 0.6111 GB, free: 88.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09729/0.9627, allocations: 48.94 MB / 0.6589 GB, free: 66.01 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001971/0.9629, allocations: 208.6 kB / 0.659 GB, free: 65.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.77/3.733, allocations: 0 / 0.659 GB, free: 65.77 MB / 446.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/linux/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) Environment - environmentSimulation: