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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 114.3 kB / 18.94 MB, free: 2.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002245/0.002245, allocations: 221.4 kB / 22.26 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05215/0.05215, allocations: 9.24 MB / 321.7 MB, free: 10.05 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 67.91 kB / 447.7 MB, free: 15.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.129, allocations: 55.46 MB / 0.4914 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01069/0.1397, allocations: 8.278 MB / 0.4995 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006404/0.1461, allocations: 2.733 MB / 0.5022 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001107/0.1472, allocations: 31.94 kB / 0.5022 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.1484, allocations: 365.6 kB / 0.5025 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003733/0.1521, allocations: 1.257 MB / 0.5038 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007575/0.1528, allocations: 259.7 kB / 0.504 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003449/0.1563, allocations: 2.421 MB / 0.5064 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.158, allocations: 0.9086 MB / 0.5073 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00144/0.1595, allocations: 0.9067 MB / 0.5082 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002269/0.1617, allocations: 1.425 MB / 0.5095 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005096/0.1622, allocations: 248 kB / 0.5098 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001786/0.164, allocations: 0.7996 MB / 0.5106 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.1656, allocations: 1.211 MB / 0.5117 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001981/0.1675, allocations: 1.542 MB / 0.5133 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2435/0.4111, allocations: 4.916 MB / 0.5181 GB, free: 12.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4111, allocations: 0 / 0.5181 GB, free: 12.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.4111, allocations: 1.062 kB / 0.5181 GB, free: 12.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001372/0.4112, allocations: 1.031 kB / 0.5181 GB, free: 12.56 MB / 382.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.009625/0.4208, allocations: 3.625 MB / 0.5216 GB, free: 11.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.4209, allocations: 9.531 kB / 0.5216 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007633/0.4217, allocations: 0.5178 MB / 0.5221 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007112/0.4288, allocations: 1.775 MB / 0.5238 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00343/0.4322, allocations: 1.268 MB / 0.5251 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.4324, allocations: 153.3 kB / 0.5252 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008493/0.4332, allocations: 199.7 kB / 0.5254 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01347/0.4467, allocations: 7.567 MB / 0.5328 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.263e-05/0.4468, allocations: 20.45 kB / 0.5328 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000332/0.4471, allocations: 94.78 kB / 0.5329 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002944/0.4501, allocations: 1.708 MB / 0.5346 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/0.4652, allocations: 6.835 MB / 0.5413 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03753/0.5027, allocations: 22.86 MB / 0.5636 GB, free: 3.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004254/0.507, allocations: 1.548 MB / 0.5651 GB, free: 1.844 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.5083, allocations: 0.6873 MB / 0.5658 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006761/0.5151, allocations: 2.644 MB / 0.5684 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.5151, allocations: 39.56 kB / 0.5684 GB, free: 14.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 3.636e-06/0.5151, allocations: 0 / 0.5684 GB, free: 14.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.00954/0.5247, allocations: 3.994 MB / 0.5723 GB, free: 10.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.253e-05/0.5247, allocations: 64.41 kB / 0.5724 GB, free: 10.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004388/0.5291, allocations: 2.434 MB / 0.5747 GB, free: 7.957 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.5292, allocations: 48.08 kB / 0.5748 GB, free: 7.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001699/0.5309, allocations: 2.084 MB / 0.5768 GB, free: 5.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006006/0.5315, allocations: 0.5022 MB / 0.5773 GB, free: 5.332 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/0.5327, allocations: 0.7228 MB / 0.578 GB, free: 4.602 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.5329, allocations: 301.1 kB / 0.5783 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/0.5352, allocations: 1.198 MB / 0.5795 GB, free: 3.105 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004314/0.5395, allocations: 3.245 MB / 0.5826 GB, free: 14.89 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009099/0.5486, allocations: 5.299 MB / 0.5878 GB, free: 8.895 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.579e-05/0.5487, allocations: 24.75 kB / 0.5878 GB, free: 8.871 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.009874/0.5586, allocations: 4.513 MB / 0.5922 GB, free: 4.633 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002125/0.5588, allocations: 36 kB / 0.5923 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.748e-05/0.5589, allocations: 72 kB / 0.5923 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000608/0.5595, allocations: 237.6 kB / 0.5926 GB, free: 4.297 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003145/0.5626, allocations: 0.8007 MB / 0.5934 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003941/0.5666, allocations: 2.789 MB / 0.5961 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003323/0.5699, allocations: 183.9 kB / 0.5963 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007161/0.5706, allocations: 216 kB / 0.5965 GB, free: 216 kB / 430.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.00356/0.5742, allocations: 1.511 MB / 0.5979 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004884/0.5747, allocations: 210.5 kB / 0.5981 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003565/0.5782, allocations: 1.763 MB / 0.5999 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002028/0.5784, allocations: 23.98 kB / 0.5999 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.5784, allocations: 1.812 kB / 0.5999 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.5785, allocations: 3.984 kB / 0.5999 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.5891, allocations: 5.06 MB / 0.6048 GB, free: 7.535 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.5891, allocations: 4 kB / 0.6048 GB, free: 7.531 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007537/0.5899, allocations: 171.8 kB / 0.605 GB, free: 7.363 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003716/0.5902, allocations: 125 kB / 0.6051 GB, free: 7.238 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.049e-05/0.5903, allocations: 23.94 kB / 0.6051 GB, free: 7.215 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002889/0.5932, allocations: 2.314 MB / 0.6074 GB, free: 4.801 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.127e-05/0.5932, allocations: 4 kB / 0.6074 GB, free: 4.797 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004885/0.5981, allocations: 2.741 MB / 0.6101 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001201/0.5993, allocations: 342.5 kB / 0.6104 GB, free: 1.668 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004518/0.5998, allocations: 20 kB / 0.6104 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007445/0.6005, allocations: 64.11 kB / 0.6105 GB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.6007, allocations: 72.17 kB / 0.6105 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-05/0.6007, allocations: 43.92 kB / 0.6106 GB, free: 1.477 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003036/0.6038, allocations: 1.57 MB / 0.6121 GB, free: 15.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6038, allocations: 0 / 0.6121 GB, free: 15.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003227/0.607, allocations: 0.5976 MB / 0.6127 GB, free: 15.29 MB / 462.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.005035/0.612, allocations: 3.375 MB / 0.616 GB, free: 11.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005485/0.6175, allocations: 2.785 MB / 0.6187 GB, free: 9.082 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.6175, allocations: 0 / 0.6187 GB, free: 9.082 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.6189, allocations: 0.832 MB / 0.6195 GB, free: 8.234 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/0.6212, allocations: 393.5 kB / 0.6199 GB, free: 7.867 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04579/0.6669, allocations: 25.59 MB / 0.6449 GB, free: 11.64 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003086/0.67, allocations: 2.465 MB / 0.6473 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002774/0.6728, allocations: 1.078 MB / 0.6484 GB, free: 8.074 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/0.6748, allocations: 1.214 MB / 0.6495 GB, free: 6.859 MB / 494.1 MB Notification: Performance of SimCode: time 1.643e-06/0.6748, allocations: 0 / 0.6495 GB, free: 6.859 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/0.7827, allocations: 45.8 MB / 0.6943 GB, free: 9.312 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.53/20.31, allocations: 7.969 kB / 0.6943 GB, free: 9.305 MB / 0.5294 GB " [Timeout remaining time 640] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 23.302412529999856] Failed to read output from testmodel.py, exit status != 0: 20.452707673000987 20.472998648 20.058000737 Calling exit ...