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.001741/0.001741, 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.002377/0.002377, allocations: 212.2 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.592/1.592, allocations: 230.6 MB / 256 MB, free: 7.789 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.04888/0.04888, allocations: 9.232 MB / 321.7 MB, free: 9.926 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.002091/0.002091, allocations: 67.89 kB / 447.7 MB, free: 14.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1091, allocations: 55.47 MB / 0.4913 GB, free: 7.078 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.008782/0.1178, allocations: 7.21 MB / 0.4984 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004777/0.1226, allocations: 2.416 MB / 0.5007 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006965/0.1233, allocations: 35.94 kB / 0.5008 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007878/0.1241, allocations: 369.6 kB / 0.5011 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002766/0.1269, allocations: 1.373 MB / 0.5025 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.1272, allocations: 115.7 kB / 0.5026 GB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002679/0.1299, allocations: 2.421 MB / 0.5049 GB, free: 9.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009173/0.1308, allocations: 0.6616 MB / 0.5056 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.1321, allocations: 0.8676 MB / 0.5064 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002232/0.1343, allocations: 1.335 MB / 0.5077 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005414/0.1349, allocations: 224 kB / 0.508 GB, free: 5.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001872/0.1368, allocations: 0.7333 MB / 0.5087 GB, free: 5.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001591/0.1383, allocations: 1.215 MB / 0.5099 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.1399, allocations: 1.063 MB / 0.5109 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2272/0.3671, allocations: 4.951 MB / 0.5157 GB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3671, allocations: 0.5625 kB / 0.5157 GB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3671, allocations: 0 / 0.5157 GB, free: 12.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001894/0.3673, allocations: 0.9062 kB / 0.5157 GB, free: 12.3 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.008231/0.3755, allocations: 3.268 MB / 0.5189 GB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3755, allocations: 9.562 kB / 0.5189 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000882/0.3764, allocations: 0.5436 MB / 0.5195 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006919/0.3833, allocations: 1.779 MB / 0.5212 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003951/0.3873, allocations: 1.261 MB / 0.5224 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.3874, allocations: 142.9 kB / 0.5226 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006768/0.3881, allocations: 185 kB / 0.5227 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01542/0.4035, allocations: 8.133 MB / 0.5307 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-05/0.4036, allocations: 21.38 kB / 0.5307 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003332/0.4039, allocations: 92.92 kB / 0.5308 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003298/0.4072, allocations: 2.008 MB / 0.5328 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/0.4217, allocations: 7.169 MB / 0.5398 GB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03651/0.4582, allocations: 22.71 MB / 0.5619 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005143/0.4634, allocations: 1.663 MB / 0.5636 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.4647, allocations: 0.6708 MB / 0.5642 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00672/0.4715, allocations: 2.473 MB / 0.5666 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/0.4715, allocations: 47.5 kB / 0.5667 GB, free: 15.28 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 5.23e-06/0.4715, allocations: 4 kB / 0.5667 GB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01161/0.4831, allocations: 4.419 MB / 0.571 GB, free: 10.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.4832, allocations: 64.41 kB / 0.5711 GB, free: 10.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004871/0.4881, allocations: 2.729 MB / 0.5737 GB, free: 8.008 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001799/0.4882, allocations: 41.7 kB / 0.5738 GB, free: 7.961 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001778/0.49, allocations: 2.195 MB / 0.5759 GB, free: 5.777 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005943/0.4906, allocations: 483 kB / 0.5764 GB, free: 5.312 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001388/0.492, allocations: 0.7614 MB / 0.5771 GB, free: 4.547 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4921, allocations: 301.1 kB / 0.5774 GB, free: 4.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/0.4944, allocations: 1.171 MB / 0.5785 GB, free: 3.078 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00419/0.4986, allocations: 3.337 MB / 0.5818 GB, free: 14.72 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006777/0.5053, allocations: 4.798 MB / 0.5865 GB, free: 9.184 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-05/0.5054, allocations: 24 kB / 0.5865 GB, free: 9.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009613/0.515, allocations: 4.454 MB / 0.5909 GB, free: 4.918 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.5151, allocations: 40.97 kB / 0.5909 GB, free: 4.879 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.5153, allocations: 76 kB / 0.591 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001387/0.5154, allocations: 100 kB / 0.5911 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003003/0.5184, allocations: 0.85 MB / 0.5919 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001921/0.5186, allocations: 155.5 kB / 0.592 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002706/0.5213, allocations: 183.9 kB / 0.5922 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005317/0.5219, 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.003532/0.5254, allocations: 1.568 MB / 0.594 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005471/0.5259, allocations: 218.5 kB / 0.5942 GB, free: 1.512 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002961/0.5289, allocations: 1.421 MB / 0.5956 GB, free: 84 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001279/0.529, allocations: 27.97 kB / 0.5956 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.529, allocations: 4 kB / 0.5956 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.529, allocations: 7.984 kB / 0.5956 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.5399, allocations: 4.569 MB / 0.6001 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/0.5399, allocations: 4 kB / 0.6001 GB, free: 11.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008914/0.5408, allocations: 184.4 kB / 0.6002 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.116e-05/0.5408, allocations: 12 kB / 0.6003 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.541, allocations: 27.98 kB / 0.6003 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-05/0.541, allocations: 15.94 kB / 0.6003 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.535e-06/0.541, allocations: 10.56 kB / 0.6003 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0042/0.5452, allocations: 2.405 MB / 0.6027 GB, free: 8.633 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008742/0.5461, allocations: 219.5 kB / 0.6029 GB, free: 8.418 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000523/0.5466, allocations: 29.16 kB / 0.6029 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.5477, allocations: 55.08 kB / 0.6029 GB, free: 8.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.5478, allocations: 76.36 kB / 0.603 GB, free: 8.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.5479, allocations: 43.98 kB / 0.6031 GB, free: 8.223 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003588/0.5515, allocations: 1.652 MB / 0.6047 GB, free: 6.555 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5515, allocations: 11.61 kB / 0.6047 GB, free: 6.547 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003944/0.5555, allocations: 0.6014 MB / 0.6053 GB, free: 5.945 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.004807/0.5603, allocations: 3.027 MB / 0.6082 GB, free: 2.828 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004933/0.5652, allocations: 2.541 MB / 0.6107 GB, free: 320 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.334e-05/0.5652, allocations: 4 kB / 0.6107 GB, free: 316 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.5663, allocations: 0.6032 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.002339/0.5687, allocations: 384.5 kB / 0.6117 GB, free: 15.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05108/0.6197, allocations: 26.31 MB / 0.6374 GB, free: 2.109 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00401/0.6237, allocations: 1.997 MB / 0.6393 GB, free: 84 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003167/0.6269, allocations: 1.117 MB / 0.6404 GB, free: 14.96 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002686/0.6296, allocations: 1.245 MB / 0.6416 GB, free: 13.71 MB / 494.1 MB Notification: Performance of SimCode: time 1.663e-06/0.6296, allocations: 0 / 0.6416 GB, free: 13.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09831/0.7279, allocations: 42.66 MB / 0.6833 GB, free: 3.559 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/14.07, allocations: 15.92 kB / 0.6833 GB, free: 3.543 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.955590449273586] Failed to read output from testmodel.py, exit status != 0: 14.21692221192643 14.234775688 13.864358267 Calling exit ...