Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.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.0013/0.0013, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001506/0.001506, allocations: 216.5 kB / 23.02 MB, free: 4.949 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.543/1.543, allocations: 230.6 MB / 256.8 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.04927/0.04927, allocations: 9.235 MB / 322.5 MB, free: 9.855 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.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDemo",fmuType="cs",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.002056/0.002056, allocations: 67.91 kB / 448.4 MB, free: 14.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1249, allocations: 55.47 MB / 0.4921 GB, free: 7.047 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.01153/0.1364, allocations: 8.304 MB / 0.5002 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007024/0.1434, allocations: 2.647 MB / 0.5028 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.145, allocations: 39.88 kB / 0.5028 GB, free: 12.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.1461, allocations: 421.2 kB / 0.5032 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004126/0.1502, allocations: 1.471 MB / 0.5047 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005572/0.1507, allocations: 163.7 kB / 0.5048 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003536/0.1543, allocations: 2.694 MB / 0.5075 GB, free: 7.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001333/0.1556, allocations: 0.7967 MB / 0.5082 GB, free: 6.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001516/0.1571, allocations: 0.9882 MB / 0.5092 GB, free: 5.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.1596, allocations: 1.533 MB / 0.5107 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005529/0.1601, allocations: 252 kB / 0.5109 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001758/0.1619, allocations: 0.7841 MB / 0.5117 GB, free: 2.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001393/0.1633, allocations: 1.343 MB / 0.513 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.1649, allocations: 1.191 MB / 0.5142 GB, free: 332 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2741/0.439, allocations: 5.375 MB / 0.5194 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.439, allocations: 0.9844 kB / 0.5194 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.439, allocations: 2.875 kB / 0.5194 GB, free: 11.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001934/0.4392, allocations: 0.875 kB / 0.5194 GB, free: 11.8 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: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.008894/0.4481, allocations: 3.615 MB / 0.523 GB, free: 10.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.4481, allocations: 10.31 kB / 0.523 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.893e-05/0.4482, allocations: 79.3 kB / 0.5231 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007839/0.449, allocations: 0.6035 MB / 0.5236 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007244/0.4562, allocations: 1.857 MB / 0.5255 GB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003471/0.4597, allocations: 1.387 MB / 0.5268 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.4599, allocations: 168.1 kB / 0.527 GB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005567/0.4604, allocations: 221.4 kB / 0.5272 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01836/0.4788, allocations: 8.715 MB / 0.5357 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.697e-05/0.4789, allocations: 22.12 kB / 0.5357 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003641/0.4792, allocations: 99.03 kB / 0.5358 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004089/0.4833, allocations: 2.085 MB / 0.5378 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01713/0.5005, allocations: 7.552 MB / 0.5452 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04304/0.5435, allocations: 25.52 MB / 0.5701 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00504/0.5485, allocations: 1.666 MB / 0.5718 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00171/0.5502, allocations: 0.879 MB / 0.5726 GB, free: 10.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009511/0.5598, allocations: 3.842 MB / 0.5764 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.5598, allocations: 44.88 kB / 0.5764 GB, free: 6.809 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 4.649e-06/0.5598, allocations: 0 / 0.5764 GB, free: 6.809 MB / 414.1 MB Notification: Performance of matching and sorting (n=135): time 0.01747/0.5773, allocations: 6.72 MB / 0.583 GB, free: 64 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.5774, allocations: 66.52 kB / 0.583 GB, free: 15.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005025/0.5824, allocations: 2.939 MB / 0.5859 GB, free: 13.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.5826, allocations: 41.7 kB / 0.586 GB, free: 12.99 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/0.5845, allocations: 2.461 MB / 0.5884 GB, free: 10.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000594/0.5851, allocations: 0.5388 MB / 0.5889 GB, free: 10.01 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/0.5864, allocations: 0.8537 MB / 0.5897 GB, free: 9.145 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.5866, allocations: 305.1 kB / 0.59 GB, free: 8.844 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002507/0.5891, allocations: 1.363 MB / 0.5913 GB, free: 7.473 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0044/0.5935, allocations: 3.803 MB / 0.5951 GB, free: 2.484 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007627/0.6011, allocations: 5.519 MB / 0.6004 GB, free: 12.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.821e-05/0.6012, allocations: 25.19 kB / 0.6005 GB, free: 12.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.0105/0.6117, allocations: 5.335 MB / 0.6057 GB, free: 6.883 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.389e-05/0.6118, allocations: 47.94 kB / 0.6057 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.6119, allocations: 84 kB / 0.6058 GB, free: 6.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008935/0.6128, allocations: 380.9 kB / 0.6062 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002985/0.6157, allocations: 0.9279 MB / 0.6071 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008345/0.6241, allocations: 8.527 MB / 0.6154 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003366/0.6275, allocations: 231.9 kB / 0.6156 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006378/0.6281, allocations: 256 kB / 0.6159 GB, free: 11.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[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 (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,11,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003171/0.6313, allocations: 1.704 MB / 0.6175 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005174/0.6318, allocations: 250.3 kB / 0.6178 GB, free: 9.941 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003767/0.6356, allocations: 1.947 MB / 0.6197 GB, free: 7.961 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001939/0.6357, allocations: 39.97 kB / 0.6197 GB, free: 7.922 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.6358, allocations: 4 kB / 0.6197 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.6358, allocations: 8.25 kB / 0.6197 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.6479, allocations: 5.359 MB / 0.625 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.6479, allocations: 4 kB / 0.625 GB, free: 2.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/0.6487, allocations: 187.7 kB / 0.6251 GB, free: 2.297 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005076/0.6492, allocations: 169.2 kB / 0.6253 GB, free: 2.125 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.467e-05/0.6493, allocations: 27.98 kB / 0.6253 GB, free: 2.098 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004488/0.6538, allocations: 4.877 MB / 0.6301 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/0.6538, allocations: 8.062 kB / 0.6301 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005013/0.6588, allocations: 2.885 MB / 0.6329 GB, free: 9.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007863/0.6596, allocations: 254.2 kB / 0.6332 GB, free: 9.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003074/0.6599, allocations: 28.05 kB / 0.6332 GB, free: 9.652 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008726/0.6608, allocations: 65.25 kB / 0.6332 GB, free: 9.59 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.661, allocations: 84.73 kB / 0.6333 GB, free: 9.504 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.962e-05/0.6611, allocations: 44.5 kB / 0.6334 GB, free: 9.465 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003198/0.6642, allocations: 1.878 MB / 0.6352 GB, free: 7.578 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6642, allocations: 0 / 0.6352 GB, free: 7.578 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003776/0.668, allocations: 0.7087 MB / 0.6359 GB, free: 6.871 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (102): * Single equations (assignments): 94 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00537/0.6734, allocations: 3.517 MB / 0.6393 GB, free: 3.281 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006815/0.6802, allocations: 3.595 MB / 0.6428 GB, free: 15.64 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/0.6802, allocations: 4.125 kB / 0.6428 GB, free: 15.64 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002086/0.6823, allocations: 1.083 MB / 0.6439 GB, free: 14.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/0.6848, allocations: 415.2 kB / 0.6443 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05615/0.741, allocations: 30.08 MB / 0.6737 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/0.7441, allocations: 2.194 MB / 0.6758 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003091/0.7472, allocations: 1.213 MB / 0.677 GB, free: 9.336 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002346/0.7495, allocations: 1.448 MB / 0.6784 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of SimCode: time 1.964e-06/0.7495, allocations: 0 / 0.6784 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3367/1.086, allocations: 49.07 MB / 0.7263 GB, free: 184.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.14/19.23, allocations: 5.188 kB / 0.7263 GB, free: 184.1 MB / 0.545 GB " [Timeout remaining time 641] (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_SpringDemo_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_SpringDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 22.35888347798027] Failed to read output from testmodel.py, exit status != 0: 19.42747566208709 19.44881915 19.005634863 Calling exit ...