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.005901/0.005901, allocations: 99.89 kB / 15.73 MB, free: 6.016 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.001266/0.001266, allocations: 187.8 kB / 16.67 MB, free: 5.93 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04804/0.04804, allocations: 9.121 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 67.89 kB / 414.1 MB, free: 21.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09713, allocations: 51.45 MB / 465.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01052/0.1077, allocations: 8.189 MB / 473.8 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005617/0.1134, allocations: 2.673 MB / 476.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008597/0.1142, allocations: 31.94 kB / 476.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009216/0.1153, allocations: 353.7 kB / 476.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002852/0.1181, allocations: 1.214 MB / 478 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005876/0.1187, allocations: 263.6 kB / 478.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.1218, allocations: 2.431 MB / 480.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.1234, allocations: 1.15 MB / 481.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001185/0.1246, allocations: 0.8873 MB / 482.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001685/0.1263, allocations: 1.312 MB / 484.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003746/0.1267, allocations: 248 kB / 484.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.1281, allocations: 0.7685 MB / 485.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.1294, allocations: 1.204 MB / 486.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00148/0.1309, allocations: 1.542 MB / 487.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005686/0.1366, allocations: 4.946 MB / 492.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1366, allocations: 0 / 492.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1366, allocations: 0 / 492.8 MB, free: 6.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.831e-05/0.1367, allocations: 0 / 492.8 MB, free: 6.832 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.007073/0.1438, allocations: 3.707 MB / 496.5 MB, free: 3.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.1438, allocations: 11.97 kB / 496.5 MB, free: 3.043 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006906/0.1445, allocations: 0.5296 MB / 497 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006826/0.1513, allocations: 1.769 MB / 498.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.1537, allocations: 1.334 MB / 0.4884 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.1539, allocations: 156.2 kB / 0.4885 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000413/0.1543, allocations: 204 kB / 0.4887 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.1665, allocations: 7.55 MB / 0.4961 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.946e-05/0.1666, allocations: 31.75 kB / 0.4961 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003275/0.167, allocations: 87.89 kB / 0.4962 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00304/0.17, allocations: 1.712 MB / 0.4979 GB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.192/0.362, allocations: 6.829 MB / 0.5046 GB, free: 39.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02746/0.3895, allocations: 22.94 MB / 0.527 GB, free: 25.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003182/0.3927, allocations: 2.16 MB / 0.5291 GB, free: 23.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009712/0.3937, allocations: 0.7304 MB / 0.5298 GB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004574/0.3983, allocations: 3.264 MB / 0.533 GB, free: 20.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.3984, allocations: 43.47 kB / 0.533 GB, free: 20.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.276e-06/0.3984, allocations: 0 / 0.533 GB, free: 20.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=127): time 0.006458/0.4048, allocations: 3.995 MB / 0.5369 GB, free: 18.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.4049, allocations: 60.31 kB / 0.537 GB, free: 18.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002499/0.4074, allocations: 2.442 MB / 0.5394 GB, free: 17.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.335e-05/0.4075, allocations: 41.58 kB / 0.5394 GB, free: 17.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007248/0.4082, allocations: 2.085 MB / 0.5414 GB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.4084, allocations: 0.4996 MB / 0.5419 GB, free: 15.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007071/0.4092, allocations: 0.7356 MB / 0.5427 GB, free: 14.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.284e-05/0.4092, allocations: 305.1 kB / 0.5429 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/0.4107, allocations: 1.188 MB / 0.5441 GB, free: 13.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002073/0.4128, allocations: 3.25 MB / 0.5473 GB, free: 9.551 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005542/0.4183, allocations: 5.292 MB / 0.5524 GB, free: 3.258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.432e-05/0.4184, allocations: 24.86 kB / 0.5525 GB, free: 3.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.006235/0.4246, allocations: 4.508 MB / 0.5569 GB, free: 14.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.991e-05/0.4247, allocations: 36 kB / 0.5569 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.581e-05/0.4248, allocations: 75.94 kB / 0.557 GB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005607/0.4253, allocations: 240.6 kB / 0.5572 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/0.4277, allocations: 0.8017 MB / 0.558 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00346/0.4312, allocations: 2.901 MB / 0.5608 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.4335, allocations: 187.9 kB / 0.561 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003072/0.4338, allocations: 212 kB / 0.5612 GB, free: 10.15 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 (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.002314/0.4361, allocations: 1.499 MB / 0.5627 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.4365, allocations: 214.5 kB / 0.5629 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.4396, allocations: 1.786 MB / 0.5646 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/0.4397, allocations: 27.98 kB / 0.5646 GB, free: 6.617 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4397, allocations: 4 kB / 0.5646 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.4398, allocations: 7.969 kB / 0.5647 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008582/0.4484, allocations: 5.075 MB / 0.5696 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.4484, allocations: 8.266 kB / 0.5696 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007458/0.4491, allocations: 167.8 kB / 0.5698 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003848/0.4495, allocations: 124.7 kB / 0.5699 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-05/0.4496, allocations: 23.98 kB / 0.5699 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.4524, allocations: 2.412 MB / 0.5723 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4524, allocations: 0 / 0.5723 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004345/0.4568, allocations: 2.745 MB / 0.575 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007915/0.4576, allocations: 423.7 kB / 0.5754 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003415/0.4579, allocations: 20 kB / 0.5754 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008307/0.4588, allocations: 51.94 kB / 0.5754 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.4589, allocations: 72.78 kB / 0.5755 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.437e-05/0.459, allocations: 39.98 kB / 0.5755 GB, free: 11.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002693/0.4617, allocations: 1.57 MB / 0.5771 GB, free: 9.566 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4618, allocations: 4 kB / 0.5771 GB, free: 9.562 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002794/0.4646, allocations: 0.613 MB / 0.5777 GB, free: 8.953 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 (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.004864/0.4694, allocations: 3.381 MB / 0.581 GB, free: 5.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005201/0.4746, allocations: 2.883 MB / 0.5838 GB, free: 2.637 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.4747, allocations: 0 / 0.5838 GB, free: 2.637 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.4761, allocations: 0.8914 MB / 0.5847 GB, free: 1.738 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002077/0.4782, allocations: 399.5 kB / 0.585 GB, free: 1.359 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04297/0.5212, allocations: 25.54 MB / 0.61 GB, free: 5.172 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003325/0.5245, allocations: 2.458 MB / 0.6124 GB, free: 2.691 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002578/0.5271, allocations: 1.085 MB / 0.6134 GB, free: 1.602 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/0.5289, allocations: 1.206 MB / 0.6146 GB, free: 404 kB / 446.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5289, allocations: 0 / 0.6146 GB, free: 404 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08623/0.6152, allocations: 42.57 MB / 0.6562 GB, free: 6.055 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.83/16.45, allocations: 10.42 kB / 0.6562 GB, free: 6.047 MB / 494.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)