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.001464/0.001464, allocations: 116.7 kB / 17.17 MB, free: 5.977 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.001428/0.001428, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.519/1.519, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.05906/0.05906, allocations: 9.227 MB / 318.8 MB, free: 15.53 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.SpringDamperDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo",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.002005/0.002005, allocations: 70.14 kB / 443.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1025, allocations: 55.44 MB / 498.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.007658/0.1102, allocations: 8.212 MB / 0.495 GB, free: 14.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005534/0.1157, allocations: 2.572 MB / 0.4975 GB, free: 11.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.1168, allocations: 31.94 kB / 0.4976 GB, free: 11.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.1178, allocations: 361.6 kB / 0.4979 GB, free: 11.39 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003509/0.1213, allocations: 1.366 MB / 0.4992 GB, free: 10.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.1218, allocations: 123.7 kB / 0.4993 GB, free: 9.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003483/0.1253, allocations: 2.425 MB / 0.5017 GB, free: 7.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001045/0.1264, allocations: 0.6806 MB / 0.5024 GB, free: 6.758 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.1275, allocations: 0.8754 MB / 0.5032 GB, free: 5.879 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001762/0.1293, allocations: 1.374 MB / 0.5046 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000361/0.1296, allocations: 220 kB / 0.5048 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.1311, allocations: 0.8542 MB / 0.5056 GB, free: 3.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001203/0.1323, allocations: 1.211 MB / 0.5068 GB, free: 2.215 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001629/0.1339, allocations: 1.53 MB / 0.5083 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006595/0.1405, allocations: 4.945 MB / 0.5131 GB, free: 11.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.1405, allocations: 4 kB / 0.5131 GB, free: 11.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1405, allocations: 0 / 0.5131 GB, free: 11.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.1406, allocations: 0 / 0.5131 GB, free: 11.71 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.007146/0.1478, allocations: 3.337 MB / 0.5164 GB, free: 8.301 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1478, allocations: 8.031 kB / 0.5164 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.781e-05/0.1479, allocations: 71.8 kB / 0.5165 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007541/0.1487, allocations: 0.5391 MB / 0.517 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007591/0.1563, allocations: 1.785 MB / 0.5187 GB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002967/0.1592, allocations: 1.306 MB / 0.52 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.1594, allocations: 143.8 kB / 0.5201 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005592/0.1599, allocations: 184.2 kB / 0.5203 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01574/0.1757, allocations: 8.104 MB / 0.5282 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.2e-05/0.1758, allocations: 23.77 kB / 0.5283 GB, free: 11.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003515/0.1761, allocations: 91.86 kB / 0.5283 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003988/0.1801, allocations: 2 MB / 0.5303 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01707/0.1972, allocations: 7.188 MB / 0.5373 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04036/0.2375, allocations: 24.11 MB / 0.5609 GB, free: 9.824 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005325/0.2429, allocations: 2.114 MB / 0.5629 GB, free: 7.582 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.2442, allocations: 0.6717 MB / 0.5636 GB, free: 6.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006785/0.2509, allocations: 3.989 MB / 0.5675 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/0.251, allocations: 51.5 kB / 0.5675 GB, free: 2.512 MB / 430.1 MB Notification: Performance of pre-optimization done (n=114): time 4.288e-06/0.251, allocations: 0 / 0.5675 GB, free: 2.512 MB / 430.1 MB Notification: Performance of matching and sorting (n=117): time 0.01138/0.2624, allocations: 4.496 MB / 0.5719 GB, free: 13.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.2624, allocations: 60.41 kB / 0.572 GB, free: 13.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004065/0.2665, allocations: 2.589 MB / 0.5745 GB, free: 11.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.2666, allocations: 45.7 kB / 0.5746 GB, free: 11.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001773/0.2684, allocations: 2.195 MB / 0.5767 GB, free: 9.004 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005876/0.269, allocations: 488.3 kB / 0.5772 GB, free: 8.523 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001165/0.2702, allocations: 0.7584 MB / 0.5779 GB, free: 7.758 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2703, allocations: 301.1 kB / 0.5782 GB, free: 7.461 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002218/0.2725, allocations: 1.174 MB / 0.5793 GB, free: 6.285 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004201/0.2767, allocations: 3.336 MB / 0.5826 GB, free: 1.887 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2269/0.5036, allocations: 4.798 MB / 0.5873 GB, free: 83.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.522e-05/0.5037, allocations: 26.19 kB / 0.5873 GB, free: 83.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008515/0.5122, allocations: 4.449 MB / 0.5917 GB, free: 82.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.821e-05/0.5123, allocations: 38.72 kB / 0.5917 GB, free: 82.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001233/0.5124, allocations: 76.06 kB / 0.5918 GB, free: 82.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001805/0.5126, allocations: 104.5 kB / 0.5919 GB, free: 82.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.5156, allocations: 0.8482 MB / 0.5927 GB, free: 82.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001531/0.5158, allocations: 149 kB / 0.5928 GB, free: 82.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002728/0.5185, allocations: 184.3 kB / 0.593 GB, free: 82.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000576/0.5191, allocations: 223.9 kB / 0.5932 GB, free: 82.15 MB / 446.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.002978/0.5221, allocations: 1.573 MB / 0.5948 GB, free: 81.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003759/0.5224, allocations: 219 kB / 0.595 GB, free: 81.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002489/0.5249, allocations: 1.419 MB / 0.5964 GB, free: 80.88 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001597/0.5251, allocations: 30.61 kB / 0.5964 GB, free: 80.88 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.5251, allocations: 0 / 0.5964 GB, free: 80.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.5251, allocations: 4.438 kB / 0.5964 GB, free: 80.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00745/0.5326, allocations: 4.807 MB / 0.6011 GB, free: 78.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.5326, allocations: 8.25 kB / 0.6011 GB, free: 78.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008088/0.5334, allocations: 192.1 kB / 0.6013 GB, free: 78.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.037e-05/0.5334, allocations: 8.312 kB / 0.6013 GB, free: 78.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.398e-05/0.5334, allocations: 39.94 kB / 0.6013 GB, free: 78.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.5335, allocations: 9.141 kB / 0.6013 GB, free: 78.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.5335, allocations: 11.28 kB / 0.6013 GB, free: 78.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002811/0.5363, allocations: 2.39 MB / 0.6037 GB, free: 77.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000412/0.5367, allocations: 303.7 kB / 0.604 GB, free: 77.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.5369, allocations: 31.38 kB / 0.604 GB, free: 77.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007422/0.5377, allocations: 51.03 kB / 0.604 GB, free: 77.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.5378, allocations: 67.47 kB / 0.6041 GB, free: 77.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.072e-05/0.5378, allocations: 43.67 kB / 0.6041 GB, free: 77.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001961/0.5398, allocations: 1.656 MB / 0.6058 GB, free: 77.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5398, allocations: 0.9375 kB / 0.6058 GB, free: 77.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002653/0.5424, allocations: 0.606 MB / 0.6064 GB, free: 76.9 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.003101/0.5455, allocations: 3.036 MB / 0.6093 GB, free: 74.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003789/0.5493, allocations: 2.545 MB / 0.6118 GB, free: 71.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.5493, allocations: 0 / 0.6118 GB, free: 71.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000771/0.5501, allocations: 0.5983 MB / 0.6124 GB, free: 71.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.552, allocations: 383.3 kB / 0.6128 GB, free: 70.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03373/0.5857, allocations: 26.31 MB / 0.6384 GB, free: 41.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002197/0.5879, allocations: 2.557 MB / 0.6409 GB, free: 39.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002276/0.5902, allocations: 1.121 MB / 0.642 GB, free: 37.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/0.5915, allocations: 1.245 MB / 0.6433 GB, free: 36.68 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5915, allocations: 0 / 0.6433 GB, free: 36.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06728/0.6588, allocations: 42.24 MB / 0.6845 GB, free: 10.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/14.17, allocations: 8.062 kB / 0.6845 GB, free: 10.65 MB / 462.1 MB " [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: 17.236673731997143] Failed to read output from testmodel.py, exit status != 0: 14.334614510997199 14.357102542 14.211947511 Calling exit ...