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.001751/0.001751, allocations: 101.5 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.002157/0.002157, allocations: 206.4 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.452/1.452, allocations: 230.6 MB / 252.8 MB, free: 8.922 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.04911/0.04911, allocations: 9.234 MB / 318.1 MB, free: 11.18 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.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: 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.001932/0.001932, allocations: 63.91 kB / 442.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1152, allocations: 55.43 MB / 498 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.009845/0.125, allocations: 8.227 MB / 0.4943 GB, free: 2.719 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005213/0.1302, allocations: 2.556 MB / 0.4968 GB, free: 156 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008932/0.1311, allocations: 35.88 kB / 0.4969 GB, free: 120 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008658/0.132, allocations: 365.7 kB / 0.4972 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003181/0.1352, allocations: 1.366 MB / 0.4985 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004746/0.1357, allocations: 107.7 kB / 0.4986 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003427/0.1391, allocations: 2.425 MB / 0.501 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.1402, allocations: 0.6884 MB / 0.5017 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001289/0.1415, allocations: 0.8754 MB / 0.5025 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002098/0.1436, allocations: 1.374 MB / 0.5039 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00054/0.1442, allocations: 224 kB / 0.5041 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.1458, allocations: 0.8542 MB / 0.5049 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.1471, allocations: 1.207 MB / 0.5061 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001931/0.149, allocations: 1.53 MB / 0.5076 GB, free: 5.059 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006515/0.1555, allocations: 4.949 MB / 0.5124 GB, free: 92 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1555, allocations: 4 kB / 0.5124 GB, free: 88 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1555, allocations: 0 / 0.5124 GB, free: 88 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000115/0.1557, allocations: 4 kB / 0.5124 GB, free: 84 kB / 382.1 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.2354/0.391, allocations: 3.328 MB / 0.5157 GB, free: 25.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3911, allocations: 10.44 kB / 0.5157 GB, free: 25.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007465/0.3918, allocations: 0.5446 MB / 0.5162 GB, free: 25.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006834/0.3987, allocations: 1.784 MB / 0.518 GB, free: 25.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.4012, allocations: 1.306 MB / 0.5192 GB, free: 24.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.4013, allocations: 144.1 kB / 0.5194 GB, free: 24.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004392/0.4018, allocations: 183.1 kB / 0.5196 GB, free: 24.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.4144, allocations: 8.107 MB / 0.5275 GB, free: 21.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.039e-05/0.4144, allocations: 29.03 kB / 0.5275 GB, free: 21.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002961/0.4147, allocations: 89.41 kB / 0.5276 GB, free: 21.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003367/0.4181, allocations: 2.001 MB / 0.5295 GB, free: 21.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01319/0.4313, allocations: 7.186 MB / 0.5366 GB, free: 18.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02944/0.4607, allocations: 24.11 MB / 0.5601 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005025/0.4658, allocations: 2.112 MB / 0.5622 GB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.467, allocations: 0.6742 MB / 0.5628 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006214/0.4732, allocations: 3.994 MB / 0.5667 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.743e-05/0.4732, allocations: 43.5 kB / 0.5668 GB, free: 3.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=114): time 3.236e-06/0.4732, allocations: 0.9375 kB / 0.5668 GB, free: 3.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=117): time 0.01059/0.4838, allocations: 4.5 MB / 0.5712 GB, free: 15.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.4839, allocations: 64.41 kB / 0.5712 GB, free: 15.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004441/0.4883, allocations: 2.589 MB / 0.5738 GB, free: 12.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002181/0.4885, allocations: 41.69 kB / 0.5738 GB, free: 12.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.4902, allocations: 2.199 MB / 0.5759 GB, free: 10.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000485/0.4907, allocations: 480.3 kB / 0.5764 GB, free: 9.773 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/0.4917, allocations: 0.7584 MB / 0.5771 GB, free: 9.008 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.4918, allocations: 301.1 kB / 0.5774 GB, free: 8.711 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001992/0.4938, allocations: 1.178 MB / 0.5786 GB, free: 7.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/0.4975, allocations: 3.326 MB / 0.5818 GB, free: 3.145 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005983/0.5035, allocations: 4.813 MB / 0.5865 GB, free: 13.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.022e-05/0.5035, allocations: 20 kB / 0.5865 GB, free: 13.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008224/0.5118, allocations: 4.456 MB / 0.5909 GB, free: 8.805 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/0.5118, allocations: 40 kB / 0.5909 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.234e-05/0.5119, allocations: 76.56 kB / 0.591 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001147/0.512, allocations: 100.9 kB / 0.5911 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002743/0.5148, allocations: 0.8467 MB / 0.5919 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001242/0.5149, allocations: 151.4 kB / 0.5921 GB, free: 7.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003072/0.518, allocations: 179.9 kB / 0.5922 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003899/0.5184, allocations: 229.5 kB / 0.5925 GB, free: 7.199 MB / 430.1 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.00251/0.5209, allocations: 1.58 MB / 0.594 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003635/0.5212, allocations: 214.5 kB / 0.5942 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002667/0.5239, allocations: 1.426 MB / 0.5956 GB, free: 3.961 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00013/0.524, allocations: 23.98 kB / 0.5956 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.524, allocations: 1.312 kB / 0.5956 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.5241, allocations: 3.984 kB / 0.5956 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008278/0.5323, allocations: 4.805 MB / 0.6003 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.5323, allocations: 8 kB / 0.6003 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008346/0.5332, allocations: 188.3 kB / 0.6005 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/0.5332, allocations: 13.38 kB / 0.6005 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.302e-05/0.5333, allocations: 35.97 kB / 0.6006 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-05/0.5333, allocations: 11.94 kB / 0.6006 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.772e-06/0.5333, allocations: 8 kB / 0.6006 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003567/0.5368, allocations: 2.394 MB / 0.6029 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005329/0.5374, allocations: 300.6 kB / 0.6032 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002313/0.5376, allocations: 23.98 kB / 0.6032 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007413/0.5384, allocations: 51.95 kB / 0.6033 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.5385, allocations: 80.28 kB / 0.6034 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.42e-05/0.5386, allocations: 44.45 kB / 0.6034 GB, free: 11.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002426/0.541, allocations: 1.652 MB / 0.605 GB, free: 10.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.541, allocations: 0 / 0.605 GB, free: 10.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002681/0.5437, allocations: 0.6093 MB / 0.6056 GB, free: 9.473 MB / 446.1 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.004066/0.5478, allocations: 3.021 MB / 0.6086 GB, free: 6.352 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004401/0.5522, allocations: 2.547 MB / 0.611 GB, free: 3.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.5522, allocations: 0.5625 kB / 0.611 GB, free: 3.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009708/0.5531, allocations: 0.6046 MB / 0.6116 GB, free: 3.215 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.555, allocations: 381.5 kB / 0.612 GB, free: 2.855 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04041/0.5954, allocations: 26.32 MB / 0.6377 GB, free: 5.586 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002882/0.5983, allocations: 2.55 MB / 0.6402 GB, free: 3.004 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002543/0.6008, allocations: 1.124 MB / 0.6413 GB, free: 1.875 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/0.6026, allocations: 1.245 MB / 0.6425 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6026, allocations: 0 / 0.6425 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08322/0.6858, allocations: 42.2 MB / 0.6837 GB, free: 6.625 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.32, allocations: 13.81 kB / 0.6837 GB, free: 6.613 MB / 0.5137 GB " [Timeout remaining time 646] (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: 17.03689900500467] Failed to read output from testmodel.py, exit status != 0: 14.418344778008759 14.434462916 14.275763518 Calling exit ...