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.001647/0.001647, allocations: 108 kB / 15.61 MB, free: 152 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.001818/0.001819, allocations: 196.9 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.487/1.487, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2386/0.2386, allocations: 9.109 MB / 299.5 MB, free: 1.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001332, allocations: 67.89 kB / 362.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1334, allocations: 51.44 MB / 413.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01062/0.144, allocations: 8.214 MB / 421.7 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2823/0.4264, allocations: 2.639 MB / 424.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001555/0.428, allocations: 33.25 kB / 424.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001063/0.4291, allocations: 356.1 kB / 424.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003435/0.4326, allocations: 1.207 MB / 425.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006352/0.4332, allocations: 269.7 kB / 426.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003035/0.4363, allocations: 2.418 MB / 428.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001742/0.438, allocations: 1.142 MB / 429.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001529/0.4396, allocations: 0.8867 MB / 430.6 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.4413, allocations: 1.317 MB / 432 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004522/0.4418, allocations: 248.6 kB / 432.2 MB, free: 35.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.4433, allocations: 0.7624 MB / 433 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009808/0.4443, allocations: 1.199 MB / 434.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001265/0.4455, allocations: 1.553 MB / 435.7 MB, free: 33.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004122/0.4497, allocations: 4.707 MB / 440.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4497, allocations: 0 / 440.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4497, allocations: 7.125 kB / 440.4 MB, free: 31.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.553e-05/0.4498, allocations: 0 / 440.4 MB, free: 31.83 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.007944/0.4577, allocations: 3.621 MB / 444 MB, free: 29.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.4578, allocations: 8.844 kB / 444.1 MB, free: 29.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007476/0.4585, allocations: 0.5185 MB / 444.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00637/0.4649, allocations: 1.758 MB / 446.3 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.468, allocations: 1.33 MB / 447.7 MB, free: 28.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.4682, allocations: 151.2 kB / 447.8 MB, free: 28.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005342/0.4687, allocations: 201.7 kB / 448 MB, free: 28.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01026/0.479, allocations: 7.557 MB / 455.6 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-05/0.4791, allocations: 24.97 kB / 455.6 MB, free: 25.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002927/0.4794, allocations: 94.62 kB / 455.7 MB, free: 25.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002707/0.4821, allocations: 1.705 MB / 457.4 MB, free: 24.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01445/0.4966, allocations: 6.84 MB / 464.2 MB, free: 22.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04178/0.5384, allocations: 22.98 MB / 487.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004066/0.5425, allocations: 2.151 MB / 489.4 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/0.5438, allocations: 0.7355 MB / 490.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005705/0.5495, allocations: 3.257 MB / 493.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.5496, allocations: 39.56 kB / 493.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 3.607e-06/0.5496, allocations: 3.938 kB / 493.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=127): time 0.008535/0.5581, allocations: 3.952 MB / 497.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.5583, allocations: 60.41 kB / 497.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/0.563, allocations: 2.434 MB / 499.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.5631, allocations: 45.7 kB / 499.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001605/0.5647, allocations: 2.006 MB / 0.4901 GB, free: 9.336 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004966/0.5652, allocations: 489.5 kB / 0.4906 GB, free: 8.863 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/0.5665, allocations: 0.7184 MB / 0.4913 GB, free: 8.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.5667, allocations: 305.1 kB / 0.4916 GB, free: 7.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/0.569, allocations: 1.19 MB / 0.4927 GB, free: 6.645 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004/0.573, allocations: 3.241 MB / 0.4959 GB, free: 2.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008481/0.5815, allocations: 5.312 MB / 0.5011 GB, free: 12.08 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.811e-05/0.5816, allocations: 20 kB / 0.5011 GB, free: 12.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.008984/0.5906, allocations: 4.517 MB / 0.5055 GB, free: 7.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.44e-05/0.5907, allocations: 36 kB / 0.5056 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001199/0.5908, allocations: 72 kB / 0.5056 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006201/0.5914, allocations: 237.8 kB / 0.5059 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/0.5943, allocations: 0.7993 MB / 0.5066 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003657/0.5979, allocations: 2.881 MB / 0.5095 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003316/0.6013, allocations: 194.3 kB / 0.5096 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006149/0.6019, allocations: 220 kB / 0.5099 GB, free: 2.98 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.003531/0.6054, allocations: 1.493 MB / 0.5113 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004818/0.6059, allocations: 205.5 kB / 0.5115 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.6094, allocations: 1.773 MB / 0.5132 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/0.6095, allocations: 23.98 kB / 0.5133 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.6096, allocations: 0 / 0.5133 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.6096, allocations: 3.984 kB / 0.5133 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/0.6233, allocations: 5.116 MB / 0.5183 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.6234, allocations: 0 / 0.5183 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000846/0.6242, allocations: 168 kB / 0.5184 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004865/0.6248, allocations: 129 kB / 0.5185 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/0.6249, allocations: 27.44 kB / 0.5186 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003568/0.6285, allocations: 2.413 MB / 0.5209 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.6285, allocations: 8.031 kB / 0.5209 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004712/0.6332, allocations: 2.727 MB / 0.5236 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.6344, allocations: 410.5 kB / 0.524 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005937/0.6351, allocations: 27.86 kB / 0.524 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.6361, allocations: 54.28 kB / 0.5241 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/0.6364, allocations: 68.98 kB / 0.5241 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-05/0.6365, allocations: 39.98 kB / 0.5242 GB, free: 3.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003819/0.6403, allocations: 1.57 MB / 0.5257 GB, free: 2.402 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6403, allocations: 3.938 kB / 0.5257 GB, free: 2.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003888/0.6442, allocations: 0.6159 MB / 0.5263 GB, free: 1.785 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.00519/0.6494, allocations: 3.368 MB / 0.5296 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007151/0.6566, allocations: 3.803 MB / 0.5333 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.6566, allocations: 0 / 0.5333 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.6584, allocations: 0.8857 MB / 0.5342 GB, free: 9.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/0.6609, allocations: 389.6 kB / 0.5345 GB, free: 9.305 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0568/0.7177, allocations: 27.22 MB / 0.5611 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004322/0.7221, allocations: 2.464 MB / 0.5635 GB, free: 8.148 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00319/0.7253, allocations: 1.077 MB / 0.5646 GB, free: 7.066 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002221/0.7276, allocations: 1.206 MB / 0.5658 GB, free: 5.859 MB / 446.1 MB Notification: Performance of SimCode: time 3.857e-06/0.7276, allocations: 4 kB / 0.5658 GB, free: 5.855 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3374/1.065, allocations: 43.4 MB / 0.6082 GB, free: 140.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.73, allocations: 7.938 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PlanarMechanics_PlanarMechanics_VehicleComponents_Examples_TestAirDrag.fmu > PlanarMechanics_PlanarMechanics.VehicleComponents.Examples.TestAirDrag.pipe 2>&1)