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.0008326/0.0008326, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009767/0.0009767, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9276/0.9276, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.02996/0.02996, allocations: 7.121 MB / 266.3 MB, free: 6.316 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 392.4 MB, free: 3.996 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.562e-05/1.699e-05, allocations: 9.234 kB / 392.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.VehicleComponents.Examples.TestAirDrag): time 0.006168/0.006185, allocations: 7.243 MB / 399.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004249/0.01043, allocations: 2.577 MB / 402.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008113/0.01124, allocations: 35.88 kB / 402.2 MB, free: 10.08 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007306/0.01198, allocations: 365.6 kB / 402.6 MB, free: 9.723 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002267/0.01424, allocations: 1.298 MB / 403.9 MB, free: 8.418 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000516/0.01476, allocations: 263.5 kB / 404.2 MB, free: 8.16 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002049/0.01681, allocations: 2.461 MB / 406.6 MB, free: 5.691 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.01782, allocations: 0.9044 MB / 407.5 MB, free: 4.754 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001287/0.0191, allocations: 1.364 MB / 408.9 MB, free: 3.387 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.02021, allocations: 1.309 MB / 410.2 MB, free: 2.074 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002005/0.02041, allocations: 248 kB / 410.4 MB, free: 1.832 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008977/0.02131, allocations: 0.7489 MB / 411.2 MB, free: 1.082 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1577/0.179, allocations: 1.246 MB / 412.4 MB, free: 17.92 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001474/0.1805, allocations: 0.8338 MB / 413.3 MB, free: 17.92 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005089/0.1856, allocations: 4.93 MB / 418.2 MB, free: 17.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1856, allocations: 0 / 418.2 MB, free: 17.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1856, allocations: 1.438 kB / 418.2 MB, free: 17.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.716e-05/0.1856, allocations: 0 / 418.2 MB, free: 17.7 MB / 330.7 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.005351/0.191, allocations: 3.597 MB / 421.8 MB, free: 16.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.191, allocations: 9 kB / 421.8 MB, free: 16.38 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005241/0.1916, allocations: 0.5206 MB / 422.3 MB, free: 16.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003771/0.1953, allocations: 1.846 MB / 424.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.197, allocations: 1.277 MB / 425.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1971, allocations: 153.6 kB / 425.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003171/0.1974, allocations: 199 kB / 425.8 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007902/0.2053, allocations: 7.526 MB / 433.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.447e-05/0.2054, allocations: 20.11 kB / 433.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002239/0.2056, allocations: 96.69 kB / 433.4 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00163/0.2072, allocations: 1.714 MB / 435.1 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006554/0.2138, allocations: 6.756 MB / 441.9 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01665/0.2304, allocations: 21.54 MB / 463.4 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.2325, allocations: 1.57 MB / 465 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006766/0.2332, allocations: 0.672 MB / 465.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002993/0.2362, allocations: 2.478 MB / 468.2 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.2362, allocations: 43.56 kB / 468.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=113): time 2.896e-06/0.2362, allocations: 0 / 468.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=127): time 0.00469/0.2409, allocations: 4.007 MB / 472.2 MB, free: 8.863 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.241, allocations: 64.41 kB / 472.3 MB, free: 8.789 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002174/0.2431, allocations: 2.546 MB / 474.8 MB, free: 6.203 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.002e-05/0.2432, allocations: 45.2 kB / 474.9 MB, free: 6.156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008623/0.244, allocations: 2.065 MB / 476.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/0.2443, allocations: 0.4933 MB / 477.4 MB, free: 3.609 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000626/0.2449, allocations: 0.7112 MB / 478.1 MB, free: 2.891 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.672e-05/0.245, allocations: 301.1 kB / 478.4 MB, free: 2.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.2462, allocations: 1.19 MB / 479.6 MB, free: 1.402 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/0.2484, allocations: 3.23 MB / 482.8 MB, free: 13.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004781/0.2532, allocations: 5.283 MB / 488.1 MB, free: 7.051 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.209e-05/0.2532, allocations: 23.39 kB / 488.2 MB, free: 7.031 MB / 378.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.004656/0.2578, allocations: 4.493 MB / 492.6 MB, free: 2.539 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.2579, allocations: 41.81 kB / 492.7 MB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.707e-05/0.2579, allocations: 72 kB / 492.8 MB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003288/0.2583, allocations: 240.6 kB / 493 MB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/0.2595, allocations: 0.7993 MB / 493.8 MB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/0.2617, allocations: 2.762 MB / 496.6 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.263, allocations: 191 kB / 496.7 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001854/0.2632, allocations: 212 kB / 496.9 MB, free: 14.13 MB / 394.7 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.002041/0.2652, allocations: 1.506 MB / 498.5 MB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.2654, allocations: 214.5 kB / 498.7 MB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.2672, allocations: 1.754 MB / 0.4887 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.054e-05/0.2672, allocations: 23.98 kB / 0.4887 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2672, allocations: 0 / 0.4887 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.2672, allocations: 7.969 kB / 0.4887 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005215/0.2725, allocations: 4.791 MB / 0.4934 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2725, allocations: 288 / 0.4934 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003681/0.2728, allocations: 171.8 kB / 0.4936 GB, free: 5.582 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001992/0.273, allocations: 128.6 kB / 0.4937 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-05/0.2731, allocations: 20 kB / 0.4937 GB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/0.2745, allocations: 2.297 MB / 0.4959 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2745, allocations: 4 kB / 0.496 GB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.2769, allocations: 2.71 MB / 0.4986 GB, free: 272 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004204/0.2773, allocations: 348.4 kB / 0.4989 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.2774, allocations: 20 kB / 0.4989 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003629/0.2778, allocations: 59.05 kB / 0.499 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.029e-05/0.2779, allocations: 76.75 kB / 0.4991 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.2779, allocations: 43.98 kB / 0.4991 GB, free: 15.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001524/0.2794, allocations: 1.554 MB / 0.5006 GB, free: 14.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2794, allocations: 0 / 0.5006 GB, free: 14.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001625/0.2811, allocations: 0.6031 MB / 0.5012 GB, free: 13.56 MB / 410.7 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.002831/0.2839, allocations: 3.352 MB / 0.5045 GB, free: 10.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.2866, allocations: 2.756 MB / 0.5072 GB, free: 7.402 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.2866, allocations: 0 / 0.5072 GB, free: 7.402 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009191/0.2875, allocations: 0.8324 MB / 0.508 GB, free: 6.555 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.2885, allocations: 392.7 kB / 0.5084 GB, free: 6.188 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02221/0.3108, allocations: 25.36 MB / 0.5331 GB, free: 10.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.3124, allocations: 1.902 MB / 0.535 GB, free: 8.25 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001552/0.314, allocations: 1.081 MB / 0.5361 GB, free: 7.164 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.315, allocations: 1.211 MB / 0.5372 GB, free: 5.953 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/0.315, allocations: 0 / 0.5372 GB, free: 5.953 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1966/0.5116, allocations: 43.37 MB / 0.5796 GB, free: 159.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.99/9.502, allocations: 4.406 kB / 0.5796 GB, free: 159.6 MB / 474.7 MB " [Timeout remaining time 650] (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: 11.42863067612052] Failed to read output from testmodel.py, exit status != 0: 9.607003225944936 9.618815942 9.431153703 Calling exit ...