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.00143/0.00143, allocations: 103 kB / 16.45 MB, free: 6.449 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.001423/0.001423, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.487/1.487, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.04812/0.04812, allocations: 9.225 MB / 318.1 MB, free: 11.23 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.001925/0.001925, allocations: 63.89 kB / 442.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1133, allocations: 55.44 MB / 498 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.01033/0.1236, allocations: 8.248 MB / 0.4943 GB, free: 2.746 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006693/0.1303, allocations: 2.698 MB / 0.497 GB, free: 40 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001306/0.1316, allocations: 31.94 kB / 0.497 GB, free: 8 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.1326, allocations: 369.7 kB / 0.4974 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003439/0.136, allocations: 1.249 MB / 0.4986 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007967/0.1368, allocations: 259.7 kB / 0.4988 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003435/0.1403, allocations: 2.431 MB / 0.5012 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001462/0.1417, allocations: 0.9469 MB / 0.5021 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001322/0.1431, allocations: 0.899 MB / 0.503 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.145, allocations: 1.433 MB / 0.5044 GB, free: 8.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004348/0.1455, allocations: 252 kB / 0.5046 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001515/0.147, allocations: 0.7957 MB / 0.5054 GB, free: 7.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.1483, allocations: 1.207 MB / 0.5066 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/0.1502, allocations: 1.538 MB / 0.5081 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2404/0.3906, allocations: 4.915 MB / 0.5129 GB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3906, allocations: 0 / 0.5129 GB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3906, allocations: 0 / 0.5129 GB, free: 11.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001894/0.3908, allocations: 0 / 0.5129 GB, free: 11.5 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.007209/0.398, allocations: 3.701 MB / 0.5165 GB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3981, allocations: 10.95 kB / 0.5165 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000573/0.3987, allocations: 0.5199 MB / 0.517 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006782/0.4054, allocations: 1.773 MB / 0.5188 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.4082, allocations: 1.336 MB / 0.5201 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.4084, allocations: 147.5 kB / 0.5202 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005914/0.409, allocations: 199.8 kB / 0.5204 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01568/0.4246, allocations: 7.561 MB / 0.5278 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003087/0.4249, allocations: 28.39 kB / 0.5278 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001492/0.4264, allocations: 94.53 kB / 0.5279 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004004/0.4304, allocations: 1.706 MB / 0.5296 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01566/0.4461, allocations: 6.836 MB / 0.5362 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03762/0.4837, allocations: 22.95 MB / 0.5587 GB, free: 4.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004255/0.488, allocations: 2.061 MB / 0.5607 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.4893, allocations: 0.6836 MB / 0.5613 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00707/0.4964, allocations: 3.265 MB / 0.5645 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.4964, allocations: 39.56 kB / 0.5646 GB, free: 13.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 4.959e-06/0.4964, allocations: 2.906 kB / 0.5646 GB, free: 13.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=127): time 0.009493/0.5059, allocations: 3.988 MB / 0.5685 GB, free: 9.738 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.506, allocations: 64.39 kB / 0.5685 GB, free: 9.664 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004819/0.5108, allocations: 2.436 MB / 0.5709 GB, free: 7.191 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.511, allocations: 44.75 kB / 0.5709 GB, free: 7.145 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001741/0.5127, allocations: 2.091 MB / 0.573 GB, free: 5.059 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006565/0.5134, allocations: 0.4967 MB / 0.5735 GB, free: 4.566 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001483/0.5149, allocations: 0.7251 MB / 0.5742 GB, free: 3.836 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.515, allocations: 305.1 kB / 0.5745 GB, free: 3.535 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/0.5174, allocations: 1.19 MB / 0.5756 GB, free: 2.344 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004178/0.5216, allocations: 3.249 MB / 0.5788 GB, free: 14.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009083/0.5307, allocations: 5.308 MB / 0.584 GB, free: 8.117 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.183e-05/0.5308, allocations: 20 kB / 0.584 GB, free: 8.098 MB / 430.1 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01015/0.5409, allocations: 4.515 MB / 0.5884 GB, free: 3.902 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.528e-05/0.541, allocations: 36.97 kB / 0.5885 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.5411, allocations: 72.88 kB / 0.5885 GB, free: 3.797 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006483/0.5418, allocations: 238.1 kB / 0.5888 GB, free: 3.562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002901/0.5447, allocations: 0.7993 MB / 0.5895 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004028/0.5487, allocations: 2.89 MB / 0.5924 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/0.5518, allocations: 189.6 kB / 0.5925 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007301/0.5525, allocations: 216.9 kB / 0.5927 GB, free: 15.35 MB / 446.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.003466/0.556, allocations: 1.507 MB / 0.5942 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006572/0.5566, allocations: 210.5 kB / 0.5944 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003974/0.5606, allocations: 1.761 MB / 0.5961 GB, free: 11.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/0.5607, allocations: 23.98 kB / 0.5962 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.5607, allocations: 7.938 kB / 0.5962 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.5607, allocations: 7.984 kB / 0.5962 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.5726, allocations: 5.086 MB / 0.6011 GB, free: 6.637 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.5726, allocations: 0 / 0.6011 GB, free: 6.637 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.5735, allocations: 168.1 kB / 0.6013 GB, free: 6.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004334/0.5739, allocations: 124.6 kB / 0.6014 GB, free: 6.348 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.574, allocations: 29.02 kB / 0.6014 GB, free: 6.32 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002873/0.5769, allocations: 2.407 MB / 0.6038 GB, free: 3.777 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.5769, allocations: 11.88 kB / 0.6038 GB, free: 3.766 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004684/0.5816, allocations: 2.74 MB / 0.6065 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.5827, allocations: 424.2 kB / 0.6069 GB, free: 0.543 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004601/0.5832, allocations: 20 kB / 0.6069 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.5843, allocations: 55.88 kB / 0.607 GB, free: 480 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.5845, allocations: 68.97 kB / 0.607 GB, free: 412 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.963e-05/0.5846, allocations: 44.69 kB / 0.6071 GB, free: 372 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003498/0.5881, allocations: 1.57 MB / 0.6086 GB, free: 14.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5881, allocations: 0 / 0.6086 GB, free: 14.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004287/0.5924, allocations: 0.6092 MB / 0.6092 GB, free: 14.16 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.005804/0.5982, allocations: 3.371 MB / 0.6125 GB, free: 10.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005657/0.6038, allocations: 2.774 MB / 0.6152 GB, free: 7.969 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/0.6038, allocations: 1.188 kB / 0.6152 GB, free: 7.969 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.6054, allocations: 0.8363 MB / 0.616 GB, free: 7.121 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.6079, allocations: 400.2 kB / 0.6164 GB, free: 6.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06088/0.6688, allocations: 25.54 MB / 0.6413 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004824/0.6737, allocations: 2.463 MB / 0.6437 GB, free: 8.094 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004177/0.6778, allocations: 1.074 MB / 0.6448 GB, free: 7.016 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002641/0.6805, allocations: 1.206 MB / 0.646 GB, free: 5.809 MB / 494.1 MB Notification: Performance of SimCode: time 1.904e-06/0.6805, allocations: 4 kB / 0.646 GB, free: 5.805 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1027/0.7832, allocations: 42.83 MB / 0.6878 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.27/17.05, allocations: 19.11 kB / 0.6878 GB, free: 11.2 MB / 0.5294 GB " [Timeout remaining time 643] (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: 19.92222489300184] Failed to read output from testmodel.py, exit status != 0: 17.167196720009088 17.190743144 16.795492354 Calling exit ...