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.001358/0.001358, 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.001511/0.001511, allocations: 214.5 kB / 23.03 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.519/1.519, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.04835/0.04835, allocations: 9.238 MB / 322.5 MB, free: 9.863 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.002354/0.002354, allocations: 55.91 kB / 448.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.117, allocations: 55.48 MB / 0.4921 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.009424/0.1264, allocations: 7.167 MB / 0.4991 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00582/0.1322, allocations: 2.42 MB / 0.5015 GB, free: 13.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009402/0.1332, allocations: 35.88 kB / 0.5015 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008324/0.134, allocations: 365.6 kB / 0.5018 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003385/0.1374, allocations: 1.374 MB / 0.5032 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.1378, allocations: 111.8 kB / 0.5033 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003282/0.1411, allocations: 2.421 MB / 0.5057 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.1424, allocations: 0.6732 MB / 0.5063 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001663/0.1441, allocations: 0.8716 MB / 0.5072 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002265/0.1463, allocations: 1.386 MB / 0.5085 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004801/0.1468, allocations: 220 kB / 0.5087 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.1484, allocations: 0.7451 MB / 0.5095 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.1498, allocations: 1.211 MB / 0.5106 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001828/0.1516, allocations: 1.059 MB / 0.5117 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2377/0.3893, allocations: 4.957 MB / 0.5165 GB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.3893, allocations: 0.5312 kB / 0.5165 GB, free: 12.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3893, allocations: 0 / 0.5165 GB, free: 12.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001463/0.3894, allocations: 5.562 kB / 0.5165 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.006862/0.3963, allocations: 3.257 MB / 0.5197 GB, free: 10.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3963, allocations: 9.875 kB / 0.5197 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.038e-05/0.3964, allocations: 70.11 kB / 0.5198 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006096/0.397, allocations: 0.5438 MB / 0.5203 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006609/0.4036, allocations: 1.782 MB / 0.522 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002767/0.4064, allocations: 1.265 MB / 0.5233 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.4065, allocations: 142.5 kB / 0.5234 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005274/0.4071, allocations: 184.2 kB / 0.5236 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.4193, allocations: 8.131 MB / 0.5315 GB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.857e-05/0.4193, allocations: 21.23 kB / 0.5316 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002959/0.4196, allocations: 93.05 kB / 0.5316 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003256/0.4229, allocations: 2.003 MB / 0.5336 GB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.4361, allocations: 7.185 MB / 0.5406 GB, free: 6.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03244/0.4685, allocations: 22.71 MB / 0.5628 GB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004896/0.4734, allocations: 1.665 MB / 0.5644 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.4747, allocations: 0.665 MB / 0.5651 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00589/0.4805, allocations: 2.482 MB / 0.5675 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.196e-05/0.4806, allocations: 46.75 kB / 0.5675 GB, free: 15.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 6.142e-06/0.4806, allocations: 3.75 kB / 0.5675 GB, free: 15.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01183/0.4924, allocations: 4.42 MB / 0.5719 GB, free: 10.79 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.4925, allocations: 64.41 kB / 0.5719 GB, free: 10.72 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004127/0.4966, allocations: 2.583 MB / 0.5744 GB, free: 8.105 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001737/0.4968, allocations: 45.7 kB / 0.5745 GB, free: 8.055 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001699/0.4985, allocations: 2.201 MB / 0.5766 GB, free: 5.863 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004778/0.499, allocations: 482.8 kB / 0.5771 GB, free: 5.402 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/0.5001, allocations: 0.7584 MB / 0.5778 GB, free: 4.637 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.5002, allocations: 301.1 kB / 0.5781 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/0.5022, allocations: 1.176 MB / 0.5793 GB, free: 3.164 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003975/0.5062, allocations: 3.337 MB / 0.5825 GB, free: 14.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00644/0.5126, allocations: 4.798 MB / 0.5872 GB, free: 9.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.698e-05/0.5127, allocations: 24 kB / 0.5872 GB, free: 9.246 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008781/0.5215, allocations: 4.456 MB / 0.5916 GB, free: 5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.781e-05/0.5216, allocations: 40 kB / 0.5916 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/0.5217, allocations: 76.88 kB / 0.5917 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001274/0.5218, allocations: 100 kB / 0.5918 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003321/0.5251, allocations: 0.8521 MB / 0.5926 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001518/0.5253, allocations: 147.4 kB / 0.5928 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003035/0.5283, allocations: 180.4 kB / 0.5929 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008525/0.5292, allocations: 228 kB / 0.5932 GB, free: 3.395 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.002938/0.5321, allocations: 1.57 MB / 0.5947 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004335/0.5326, allocations: 222.5 kB / 0.5949 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002696/0.5353, allocations: 1.418 MB / 0.5963 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001315/0.5354, allocations: 28.69 kB / 0.5963 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5354, allocations: 1.562 kB / 0.5963 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.5354, allocations: 7.984 kB / 0.5963 GB, free: 136 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008736/0.5441, allocations: 4.573 MB / 0.6008 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.5442, allocations: 4 kB / 0.6008 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008896/0.545, allocations: 188.4 kB / 0.601 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.491e-05/0.5451, allocations: 9.031 kB / 0.601 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.683e-05/0.5451, allocations: 32 kB / 0.601 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-05/0.5451, allocations: 11.98 kB / 0.601 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.017e-06/0.5452, allocations: 11.88 kB / 0.601 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003793/0.549, allocations: 2.397 MB / 0.6034 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006844/0.5496, allocations: 226.6 kB / 0.6036 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.5499, allocations: 22.19 kB / 0.6036 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007901/0.5507, allocations: 56.59 kB / 0.6037 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.5508, allocations: 76.36 kB / 0.6037 GB, free: 8.355 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.226e-05/0.5509, allocations: 45.7 kB / 0.6038 GB, free: 8.312 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002642/0.5536, allocations: 1.655 MB / 0.6054 GB, free: 6.641 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5536, allocations: 0 / 0.6054 GB, free: 6.641 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002906/0.5565, allocations: 0.6015 MB / 0.606 GB, free: 6.039 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.004272/0.5607, allocations: 3.036 MB / 0.609 GB, free: 2.914 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005139/0.5659, allocations: 2.548 MB / 0.6114 GB, free: 400 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/0.5659, allocations: 0 / 0.6114 GB, free: 400 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.567, allocations: 0.603 MB / 0.612 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.5692, allocations: 383.2 kB / 0.6124 GB, free: 15.42 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04176/0.6109, allocations: 26.31 MB / 0.6381 GB, free: 2.199 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002872/0.6138, allocations: 1.995 MB / 0.64 GB, free: 180 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00291/0.6167, allocations: 1.121 MB / 0.6411 GB, free: 15.05 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001945/0.6186, allocations: 1.245 MB / 0.6423 GB, free: 13.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.804e-06/0.6186, allocations: 0 / 0.6423 GB, free: 13.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08786/0.7065, allocations: 44.03 MB / 0.6853 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.24/17.95, allocations: 3.938 kB / 0.6853 GB, free: 2.312 MB / 0.5137 GB " [Timeout remaining time 642] (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: 20.942296965047717] Failed to read output from testmodel.py, exit status != 0: 18.14217341004405 18.168053226 17.773585565 Calling exit ...