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.001282/0.001282, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001388/0.001388, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.574/1.574, allocations: 230.6 MB / 256 MB, free: 7.785 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.07267/0.07267, allocations: 9.233 MB / 321.7 MB, free: 9.906 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.002339/0.002339, allocations: 75.88 kB / 447.7 MB, free: 14.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1047, allocations: 55.46 MB / 0.4913 GB, free: 7.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.009728/0.1144, allocations: 7.203 MB / 0.4984 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005456/0.1199, allocations: 2.424 MB / 0.5007 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.121, allocations: 31.94 kB / 0.5008 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.1221, allocations: 369.6 kB / 0.5011 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003567/0.1256, allocations: 1.377 MB / 0.5025 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005073/0.1261, allocations: 115.7 kB / 0.5026 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003716/0.1299, allocations: 2.417 MB / 0.5049 GB, free: 9.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001397/0.1313, allocations: 0.6615 MB / 0.5056 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001653/0.1329, allocations: 0.8793 MB / 0.5064 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002286/0.1352, allocations: 1.327 MB / 0.5077 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007694/0.136, allocations: 224 kB / 0.508 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.1378, allocations: 0.7372 MB / 0.5087 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001637/0.1394, allocations: 1.211 MB / 0.5099 GB, free: 4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001662/0.1411, allocations: 1.063 MB / 0.5109 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.236/0.377, allocations: 4.948 MB / 0.5157 GB, free: 12.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.377, allocations: 1.562 kB / 0.5157 GB, free: 12.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.377, allocations: 0.5938 kB / 0.5157 GB, free: 12.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001242/0.3772, allocations: 0 / 0.5157 GB, free: 12.28 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.006128/0.3833, allocations: 3.269 MB / 0.5189 GB, free: 10.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3833, allocations: 11.38 kB / 0.5189 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006379/0.384, allocations: 0.5383 MB / 0.5195 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006491/0.3905, allocations: 1.785 MB / 0.5212 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003095/0.3935, allocations: 1.261 MB / 0.5224 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.3937, allocations: 145.6 kB / 0.5226 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005052/0.3942, allocations: 183.4 kB / 0.5227 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01523/0.4094, allocations: 8.134 MB / 0.5307 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.786e-05/0.4095, allocations: 24.73 kB / 0.5307 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.4098, allocations: 89.2 kB / 0.5308 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003107/0.4129, allocations: 2.004 MB / 0.5328 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/0.4261, allocations: 7.169 MB / 0.5398 GB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04692/0.473, allocations: 22.72 MB / 0.5619 GB, free: 4.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007052/0.4801, allocations: 1.657 MB / 0.5636 GB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00185/0.4819, allocations: 0.665 MB / 0.5642 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006681/0.4886, allocations: 2.479 MB / 0.5666 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.895e-05/0.4886, allocations: 51.5 kB / 0.5667 GB, free: 15.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 4.057e-06/0.4887, allocations: 2.188 kB / 0.5667 GB, free: 15.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01055/0.4992, allocations: 4.418 MB / 0.571 GB, free: 10.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.4993, allocations: 64.41 kB / 0.5711 GB, free: 10.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00466/0.5039, allocations: 2.725 MB / 0.5737 GB, free: 7.996 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.504, allocations: 41.7 kB / 0.5738 GB, free: 7.949 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001841/0.5059, allocations: 2.198 MB / 0.5759 GB, free: 5.762 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005273/0.5064, allocations: 481.5 kB / 0.5764 GB, free: 5.297 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001287/0.5077, allocations: 0.7536 MB / 0.5771 GB, free: 4.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.5078, allocations: 305.1 kB / 0.5774 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/0.5101, allocations: 1.18 MB / 0.5785 GB, free: 3.059 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004127/0.5142, allocations: 3.326 MB / 0.5818 GB, free: 14.71 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006882/0.5211, allocations: 4.809 MB / 0.5865 GB, free: 9.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.474e-05/0.5212, allocations: 20 kB / 0.5865 GB, free: 9.141 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009923/0.5311, allocations: 4.466 MB / 0.5909 GB, free: 4.906 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.871e-05/0.5312, allocations: 40 kB / 0.5909 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001394/0.5314, allocations: 72 kB / 0.591 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001385/0.5315, allocations: 104 kB / 0.5911 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00307/0.5346, allocations: 0.843 MB / 0.5919 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001849/0.5348, allocations: 155.4 kB / 0.592 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002728/0.5375, allocations: 182.8 kB / 0.5922 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004843/0.538, allocations: 224 kB / 0.5924 GB, free: 3.305 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.003168/0.5411, allocations: 1.573 MB / 0.594 GB, free: 1.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/0.5416, allocations: 215.4 kB / 0.5942 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/0.5445, allocations: 1.428 MB / 0.5956 GB, free: 72 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001296/0.5446, allocations: 23.98 kB / 0.5956 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.5447, allocations: 0 / 0.5956 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.5447, allocations: 7.984 kB / 0.5956 GB, free: 40 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.5549, allocations: 4.577 MB / 0.6001 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.555, allocations: 4 kB / 0.6001 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009197/0.5559, allocations: 179.8 kB / 0.6002 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.025e-05/0.5559, allocations: 12 kB / 0.6003 GB, free: 11.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-05/0.556, allocations: 23.98 kB / 0.6003 GB, free: 11.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.57e-05/0.556, allocations: 15.92 kB / 0.6003 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/0.556, allocations: 11.94 kB / 0.6003 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003903/0.5599, allocations: 2.403 MB / 0.6027 GB, free: 8.629 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007249/0.5606, allocations: 227.4 kB / 0.6029 GB, free: 8.406 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000447/0.5611, allocations: 20 kB / 0.6029 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009522/0.562, allocations: 58.12 kB / 0.6029 GB, free: 8.332 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.5622, allocations: 80.36 kB / 0.603 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.131e-05/0.5623, allocations: 43.98 kB / 0.6031 GB, free: 8.211 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00303/0.5653, allocations: 1.652 MB / 0.6047 GB, free: 6.543 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5653, allocations: 0 / 0.6047 GB, free: 6.543 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003101/0.5684, allocations: 0.6076 MB / 0.6053 GB, free: 5.938 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.004589/0.573, allocations: 3.031 MB / 0.6082 GB, free: 2.816 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004717/0.5777, allocations: 2.541 MB / 0.6107 GB, free: 308 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.5777, allocations: 0.5625 kB / 0.6107 GB, free: 308 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.5788, allocations: 0.5986 MB / 0.6113 GB, free: 15.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.5811, allocations: 383.1 kB / 0.6117 GB, free: 15.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04544/0.6265, allocations: 26.32 MB / 0.6374 GB, free: 2.098 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003461/0.63, allocations: 2.002 MB / 0.6393 GB, free: 68 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002988/0.633, allocations: 1.117 MB / 0.6404 GB, free: 14.95 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001991/0.6349, allocations: 1.249 MB / 0.6416 GB, free: 13.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/0.635, allocations: 0 / 0.6416 GB, free: 13.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09639/0.7313, allocations: 42.66 MB / 0.6833 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.47, allocations: 3.984 kB / 0.6833 GB, free: 3.547 MB / 0.5137 GB " [Timeout remaining time 645] (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.440622246358544] Failed to read output from testmodel.py, exit status != 0: 14.60906532779336 14.637206562 14.254744624 Calling exit ...