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.001824/0.001824, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001834/0.001834, allocations: 217.7 kB / 22.25 MB, free: 5.125 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.705/1.705, allocations: 230.6 MB / 256 MB, free: 7.973 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.05369/0.05369, allocations: 9.226 MB / 321.7 MB, free: 10.15 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.002184/0.002184, allocations: 71.83 kB / 447.7 MB, free: 15.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1569, allocations: 55.48 MB / 0.4914 GB, free: 7.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01147/0.1684, allocations: 8.234 MB / 0.4995 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006363/0.1748, allocations: 2.58 MB / 0.502 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.1758, allocations: 35.88 kB / 0.502 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.1768, allocations: 365.6 kB / 0.5024 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00329/0.1801, allocations: 1.358 MB / 0.5037 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006145/0.1807, allocations: 127.7 kB / 0.5038 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003126/0.1839, allocations: 2.421 MB / 0.5062 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.185, allocations: 0.6655 MB / 0.5068 GB, free: 7.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001477/0.1864, allocations: 0.8754 MB / 0.5077 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002068/0.1885, allocations: 1.374 MB / 0.509 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006246/0.1891, allocations: 227.9 kB / 0.5092 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00185/0.191, allocations: 0.8504 MB / 0.5101 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.1923, allocations: 1.215 MB / 0.5113 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.1943, allocations: 1.522 MB / 0.5127 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3485/0.5428, allocations: 4.953 MB / 0.5176 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.5428, allocations: 0 / 0.5176 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.5428, allocations: 0 / 0.5176 GB, free: 12.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001073/0.5429, allocations: 0 / 0.5176 GB, free: 12.54 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.00802/0.5509, allocations: 3.266 MB / 0.5208 GB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.551, allocations: 8.312 kB / 0.5208 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006491/0.5516, allocations: 0.5381 MB / 0.5213 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007353/0.559, allocations: 1.787 MB / 0.523 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003526/0.5625, allocations: 1.248 MB / 0.5243 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/0.5626, allocations: 141.3 kB / 0.5244 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005525/0.5632, allocations: 185.4 kB / 0.5246 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01469/0.5779, allocations: 8.113 MB / 0.5325 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.054e-05/0.578, allocations: 20.92 kB / 0.5325 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004712/0.5784, allocations: 89.48 kB / 0.5326 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004144/0.5826, allocations: 2.009 MB / 0.5346 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01688/0.5995, allocations: 7.175 MB / 0.5416 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04242/0.6419, allocations: 24.05 MB / 0.5651 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005075/0.647, allocations: 1.659 MB / 0.5667 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.6483, allocations: 0.6805 MB / 0.5674 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006313/0.6546, allocations: 2.707 MB / 0.57 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.581e-05/0.6546, allocations: 39.56 kB / 0.57 GB, free: 12.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 4.949e-06/0.6546, allocations: 5.641 kB / 0.57 GB, free: 12.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01186/0.6665, allocations: 4.413 MB / 0.5743 GB, free: 8.277 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.6665, allocations: 60.41 kB / 0.5744 GB, free: 8.203 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005324/0.6719, allocations: 2.594 MB / 0.5769 GB, free: 5.582 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.845e-05/0.672, allocations: 45.7 kB / 0.577 GB, free: 5.531 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002349/0.6743, allocations: 2.195 MB / 0.5791 GB, free: 3.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006872/0.675, allocations: 478.8 kB / 0.5796 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001282/0.6763, allocations: 0.7574 MB / 0.5803 GB, free: 2.121 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.6764, allocations: 305.1 kB / 0.5806 GB, free: 1.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002153/0.6786, allocations: 1.176 MB / 0.5818 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004817/0.6834, allocations: 3.333 MB / 0.585 GB, free: 12.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007155/0.6906, allocations: 4.809 MB / 0.5897 GB, free: 6.746 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-05/0.6906, allocations: 27.94 kB / 0.5897 GB, free: 6.719 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008471/0.6991, allocations: 4.451 MB / 0.5941 GB, free: 2.531 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.964e-05/0.6991, allocations: 38.81 kB / 0.5941 GB, free: 2.496 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-05/0.6992, allocations: 76 kB / 0.5942 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001134/0.6993, allocations: 100 kB / 0.5943 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002849/0.7022, allocations: 0.854 MB / 0.5951 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001452/0.7023, allocations: 147.4 kB / 0.5953 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002367/0.7047, allocations: 191.3 kB / 0.5954 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.705, allocations: 224 kB / 0.5957 GB, free: 0.9258 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.003281/0.7083, allocations: 1.567 MB / 0.5972 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004437/0.7087, allocations: 218.5 kB / 0.5974 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/0.7116, allocations: 1.433 MB / 0.5988 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000127/0.7117, allocations: 23.98 kB / 0.5988 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.7118, allocations: 0 / 0.5988 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.7118, allocations: 7.812 kB / 0.5988 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/0.7225, allocations: 4.775 MB / 0.6035 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.7225, allocations: 4 kB / 0.6035 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009086/0.7234, allocations: 191.7 kB / 0.6037 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.911e-05/0.7234, allocations: 8.516 kB / 0.6037 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-05/0.7235, allocations: 31.98 kB / 0.6037 GB, free: 8.555 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-05/0.7235, allocations: 8.469 kB / 0.6037 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/0.7235, allocations: 11.94 kB / 0.6037 GB, free: 8.535 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/0.7279, allocations: 2.4 MB / 0.6061 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008209/0.7288, allocations: 222.6 kB / 0.6063 GB, free: 5.832 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/0.729, allocations: 20 kB / 0.6063 GB, free: 5.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008908/0.7299, allocations: 56.38 kB / 0.6064 GB, free: 5.762 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.73, allocations: 80.3 kB / 0.6064 GB, free: 5.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.805e-05/0.7301, allocations: 43.98 kB / 0.6065 GB, free: 5.641 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002978/0.7331, allocations: 1.655 MB / 0.6081 GB, free: 3.969 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7331, allocations: 0 / 0.6081 GB, free: 3.969 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003747/0.7368, allocations: 0.5976 MB / 0.6087 GB, free: 3.371 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.00479/0.7416, allocations: 3.035 MB / 0.6116 GB, free: 252 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005321/0.7469, allocations: 2.541 MB / 0.6141 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/0.7469, allocations: 0 / 0.6141 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.7481, allocations: 0.6107 MB / 0.6147 GB, free: 13.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002128/0.7502, allocations: 380.5 kB / 0.6151 GB, free: 12.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05106/0.8013, allocations: 26.31 MB / 0.6408 GB, free: 15.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003796/0.8051, allocations: 2.562 MB / 0.6433 GB, free: 12.94 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00312/0.8082, allocations: 1.121 MB / 0.6444 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002094/0.8103, allocations: 1.249 MB / 0.6456 GB, free: 10.57 MB / 494.1 MB Notification: Performance of SimCode: time 1.172e-06/0.8103, allocations: 0 / 0.6456 GB, free: 10.57 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1265/0.9368, allocations: 45.31 MB / 0.6898 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.77/18.71, allocations: 3.938 kB / 0.6898 GB, free: 13.51 MB / 0.5294 GB " [Timeout remaining time 641] (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: 21.936577455839142] Failed to read output from testmodel.py, exit status != 0: 18.846895207185298 18.876410005 18.328484152 Calling exit ...