Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.0008051/0.0008051, 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.0008534/0.0008534, 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.8916/0.8916, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.0283/0.0283, allocations: 7.125 MB / 266.3 MB, free: 6.309 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.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 392.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.487e-05/1.657e-05, allocations: 5.234 kB / 392.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.005393/0.00541, allocations: 7.207 MB / 399.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.00888, allocations: 2.424 MB / 402 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005555/0.009436, allocations: 35.88 kB / 402.1 MB, free: 10.26 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006132/0.01005, allocations: 373.5 kB / 402.4 MB, free: 9.895 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.01201, allocations: 1.404 MB / 403.8 MB, free: 8.484 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002476/0.01225, allocations: 111.7 kB / 403.9 MB, free: 8.375 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001858/0.01411, allocations: 2.48 MB / 406.4 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008431/0.01495, allocations: 0.6738 MB / 407.1 MB, free: 5.195 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.01626, allocations: 1.325 MB / 408.4 MB, free: 3.867 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001211/0.01747, allocations: 1.282 MB / 409.7 MB, free: 2.582 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003555/0.01782, allocations: 220 kB / 409.9 MB, free: 2.367 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009796/0.0188, allocations: 0.8035 MB / 410.7 MB, free: 1.562 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006612/0.01946, allocations: 1.25 MB / 412 MB, free: 316 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1428/0.1622, allocations: 0.7901 MB / 412.7 MB, free: 17.7 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004505/0.1667, allocations: 4.929 MB / 417.7 MB, free: 17.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1667, allocations: 0.6094 kB / 417.7 MB, free: 17.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1667, allocations: 0.9375 kB / 417.7 MB, free: 17.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.058e-05/0.1668, allocations: 1.094 kB / 417.7 MB, free: 17.46 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.004421/0.1712, allocations: 3.236 MB / 420.9 MB, free: 16.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1713, allocations: 11.81 kB / 420.9 MB, free: 16.07 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004793/0.1717, allocations: 0.5408 MB / 421.5 MB, free: 16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003623/0.1754, allocations: 1.876 MB / 423.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.1768, allocations: 1.261 MB / 424.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.07e-05/0.1769, allocations: 141.7 kB / 424.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000327/0.1772, allocations: 179.7 kB / 424.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006769/0.184, allocations: 8.09 MB / 433 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.513e-05/0.1841, allocations: 27.09 kB / 433 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002232/0.1843, allocations: 93 kB / 433.1 MB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001666/0.1859, allocations: 1.99 MB / 435.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00646/0.1924, allocations: 7.092 MB / 442.2 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01724/0.2096, allocations: 22.73 MB / 464.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002551/0.2122, allocations: 1.708 MB / 466.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006575/0.2129, allocations: 0.6611 MB / 467.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003013/0.2159, allocations: 2.498 MB / 469.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.2159, allocations: 43.56 kB / 469.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=114): time 2.826e-06/0.2159, allocations: 0 / 469.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=117): time 0.005658/0.2215, allocations: 4.51 MB / 474.4 MB, free: 6.355 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.2216, allocations: 67.31 kB / 474.4 MB, free: 6.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002488/0.2241, allocations: 2.715 MB / 477.1 MB, free: 3.539 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.2241, allocations: 41.7 kB / 477.2 MB, free: 3.492 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008611/0.225, allocations: 2.181 MB / 479.4 MB, free: 1.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002291/0.2252, allocations: 473.6 kB / 479.8 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006338/0.2258, allocations: 0.7469 MB / 480.6 MB, free: 116 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.2259, allocations: 305.1 kB / 480.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.2273, allocations: 1.171 MB / 482 MB, free: 14.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002121/0.2295, allocations: 3.318 MB / 485.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003695/0.2332, allocations: 4.79 MB / 490.1 MB, free: 4.496 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.238e-05/0.2332, allocations: 20 kB / 490.2 MB, free: 4.477 MB / 378.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.004648/0.2378, allocations: 4.444 MB / 494.6 MB, free: 48 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.322e-05/0.2379, allocations: 43.94 kB / 494.7 MB, free: 4 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.248e-05/0.2379, allocations: 76.2 kB / 494.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.417e-05/0.238, allocations: 104 kB / 494.8 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/0.2394, allocations: 0.8421 MB / 495.7 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.218e-05/0.2395, allocations: 151.4 kB / 495.8 MB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.2408, allocations: 188 kB / 496 MB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002026/0.241, allocations: 227.6 kB / 496.2 MB, free: 14.43 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001954/0.243, allocations: 1.564 MB / 497.8 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001848/0.2432, allocations: 226.4 kB / 498 MB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.2446, allocations: 1.402 MB / 499.4 MB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-05/0.2447, allocations: 33.55 kB / 499.4 MB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.2447, allocations: 0 / 499.4 MB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.2447, allocations: 7.969 kB / 499.5 MB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005272/0.25, allocations: 4.571 MB / 0.4922 GB, free: 6.516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.25, allocations: 8.516 kB / 0.4922 GB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004307/0.2504, allocations: 191.7 kB / 0.4924 GB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/0.2504, allocations: 8 kB / 0.4924 GB, free: 6.316 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.806e-05/0.2505, allocations: 31.98 kB / 0.4924 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.2505, allocations: 11.98 kB / 0.4924 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.2505, allocations: 7.938 kB / 0.4925 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.2526, allocations: 2.361 MB / 0.4948 GB, free: 3.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.2528, allocations: 224.3 kB / 0.495 GB, free: 3.602 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.2529, allocations: 29.62 kB / 0.495 GB, free: 3.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003874/0.2533, allocations: 51.95 kB / 0.4951 GB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.083e-05/0.2534, allocations: 76.34 kB / 0.4951 GB, free: 3.449 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/0.2535, allocations: 45.33 kB / 0.4952 GB, free: 3.406 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001465/0.2549, allocations: 1.652 MB / 0.4968 GB, free: 1.738 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2549, allocations: 0 / 0.4968 GB, free: 1.738 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002028/0.257, allocations: 0.6052 MB / 0.4974 GB, free: 1.137 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.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 (92): * Single equations (assignments): 87 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002386/0.2593, allocations: 2.996 MB / 0.5003 GB, free: 14.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00247/0.2618, allocations: 2.526 MB / 0.5028 GB, free: 11.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2618, allocations: 1.688 kB / 0.5028 GB, free: 11.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005587/0.2624, allocations: 0.5901 MB / 0.5033 GB, free: 10.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.2634, allocations: 383.2 kB / 0.5037 GB, free: 10.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02346/0.2869, allocations: 26 MB / 0.5291 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001959/0.2888, allocations: 1.988 MB / 0.531 GB, free: 11.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001535/0.2904, allocations: 1.117 MB / 0.5321 GB, free: 10.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.2915, allocations: 1.25 MB / 0.5334 GB, free: 9.246 MB / 442.7 MB Notification: Performance of SimCode: time 9.32e-07/0.2915, allocations: 3.938 kB / 0.5334 GB, free: 9.242 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1764/0.4678, allocations: 42.66 MB / 0.575 GB, free: 159.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.764, allocations: 4.656 kB / 0.575 GB, free: 159.1 MB / 474.7 MB " [Timeout remaining time 651] (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.592545511201024] Failed to read output from testmodel.py, exit status != 0: 8.86631502583623 8.877623672 8.708910666 Calling exit ...