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.001428/0.001428, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001599/0.001599, allocations: 215.6 kB / 22.26 MB, free: 5.082 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 8.008 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.04874/0.04874, allocations: 9.239 MB / 321.7 MB, free: 10.04 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.002178/0.002178, allocations: 63.89 kB / 447.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1148, allocations: 55.47 MB / 0.4914 GB, free: 7.492 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01038/0.1251, allocations: 8.242 MB / 0.4995 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005022/0.1302, allocations: 2.58 MB / 0.502 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000675/0.1308, allocations: 31.94 kB / 0.502 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008484/0.1317, allocations: 361.6 kB / 0.5024 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002685/0.1344, allocations: 1.37 MB / 0.5037 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003417/0.1347, allocations: 115.7 kB / 0.5038 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002777/0.1375, allocations: 2.421 MB / 0.5062 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008848/0.1384, allocations: 0.6694 MB / 0.5068 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001025/0.1394, allocations: 0.8754 MB / 0.5077 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.1412, allocations: 1.374 MB / 0.509 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003452/0.1415, allocations: 220 kB / 0.5092 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001433/0.1429, allocations: 0.8581 MB / 0.5101 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.144, allocations: 1.215 MB / 0.5113 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.1454, allocations: 1.526 MB / 0.5127 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2177/0.3631, allocations: 4.949 MB / 0.5176 GB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3631, allocations: 0 / 0.5176 GB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3631, allocations: 1.531 kB / 0.5176 GB, free: 12.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001727/0.3633, allocations: 0 / 0.5176 GB, free: 12.5 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.007262/0.3705, allocations: 3.259 MB / 0.5208 GB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3706, allocations: 9.5 kB / 0.5208 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006704/0.3713, allocations: 0.5451 MB / 0.5213 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006564/0.3778, allocations: 1.78 MB / 0.523 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003271/0.3811, allocations: 1.251 MB / 0.5243 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.3812, allocations: 139.7 kB / 0.5244 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004928/0.3817, allocations: 185.8 kB / 0.5246 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/0.3951, allocations: 8.107 MB / 0.5325 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.372e-05/0.3951, allocations: 24.2 kB / 0.5325 GB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003003/0.3954, allocations: 89.48 kB / 0.5326 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003193/0.3986, allocations: 2.006 MB / 0.5346 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01339/0.412, allocations: 7.184 MB / 0.5416 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03959/0.4516, allocations: 24.06 MB / 0.5651 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005025/0.4566, allocations: 1.655 MB / 0.5667 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001332/0.458, allocations: 0.678 MB / 0.5673 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007033/0.465, allocations: 2.704 MB / 0.57 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.465, allocations: 47.55 kB / 0.57 GB, free: 12.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 3.707e-06/0.4651, allocations: 0 / 0.57 GB, free: 12.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01104/0.4761, allocations: 4.425 MB / 0.5744 GB, free: 8.258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.4762, allocations: 60.41 kB / 0.5744 GB, free: 8.184 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005012/0.4812, allocations: 2.59 MB / 0.5769 GB, free: 5.562 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.4813, allocations: 41.42 kB / 0.577 GB, free: 5.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002037/0.4833, allocations: 2.197 MB / 0.5791 GB, free: 3.332 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005375/0.4839, allocations: 483 kB / 0.5796 GB, free: 2.867 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001429/0.4853, allocations: 0.7572 MB / 0.5803 GB, free: 2.105 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.4855, allocations: 305.1 kB / 0.5806 GB, free: 1.805 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00225/0.4877, allocations: 1.174 MB / 0.5818 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004202/0.4919, allocations: 3.328 MB / 0.585 GB, free: 12.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00714/0.4991, allocations: 4.802 MB / 0.5897 GB, free: 6.734 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.286e-05/0.4991, allocations: 29.75 kB / 0.5897 GB, free: 6.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009198/0.5083, allocations: 4.454 MB / 0.5941 GB, free: 2.543 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.856e-05/0.5084, allocations: 39.98 kB / 0.5941 GB, free: 2.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/0.5085, allocations: 76.88 kB / 0.5942 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001252/0.5087, allocations: 100 kB / 0.5943 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/0.5117, allocations: 0.8461 MB / 0.5951 GB, free: 1.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001784/0.5119, allocations: 155.4 kB / 0.5953 GB, free: 1.332 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002598/0.5145, allocations: 184.8 kB / 0.5954 GB, free: 1.152 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004632/0.5149, allocations: 227.9 kB / 0.5957 GB, free: 0.9336 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.003028/0.518, allocations: 1.571 MB / 0.5972 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004166/0.5184, allocations: 218.5 kB / 0.5974 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002921/0.5213, allocations: 1.414 MB / 0.5988 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00015/0.5215, allocations: 35.16 kB / 0.5988 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.5215, allocations: 8 kB / 0.5988 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.5215, allocations: 3.984 kB / 0.5988 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.5324, allocations: 4.774 MB / 0.6035 GB, free: 8.789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/0.5324, allocations: 4 kB / 0.6035 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000909/0.5333, allocations: 187.8 kB / 0.6037 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-05/0.5333, allocations: 8 kB / 0.6037 GB, free: 8.594 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.273e-05/0.5334, allocations: 35.47 kB / 0.6037 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.827e-05/0.5334, allocations: 15.92 kB / 0.6037 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/0.5334, allocations: 7.938 kB / 0.6037 GB, free: 8.539 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004005/0.5374, allocations: 2.39 MB / 0.6061 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007112/0.5381, allocations: 226.6 kB / 0.6063 GB, free: 5.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004063/0.5385, allocations: 26.73 kB / 0.6063 GB, free: 5.816 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009149/0.5395, allocations: 55.94 kB / 0.6064 GB, free: 5.762 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.5396, allocations: 75.64 kB / 0.6064 GB, free: 5.691 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.5397, allocations: 44.27 kB / 0.6065 GB, free: 5.648 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003304/0.543, allocations: 1.659 MB / 0.6081 GB, free: 3.973 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.543, allocations: 0 / 0.6081 GB, free: 3.973 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003123/0.5462, allocations: 0.6036 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.004563/0.5507, allocations: 3.032 MB / 0.6116 GB, free: 252 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004996/0.5557, allocations: 2.542 MB / 0.6141 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.5557, allocations: 4.062 kB / 0.6141 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.5568, allocations: 0.5947 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.002274/0.559, allocations: 389.2 kB / 0.6151 GB, free: 12.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04908/0.6081, 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.004139/0.6123, allocations: 2.556 MB / 0.6433 GB, free: 12.95 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002896/0.6152, allocations: 1.124 MB / 0.6444 GB, free: 11.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002048/0.6172, allocations: 1.241 MB / 0.6456 GB, free: 10.57 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6172, allocations: 3.5 kB / 0.6456 GB, free: 10.57 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09991/0.7171, allocations: 45.31 MB / 0.6898 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.84/17.55, allocations: 14.55 kB / 0.6899 GB, free: 13.52 MB / 0.5294 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 & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PlanarMechanics_PlanarMechanics_Examples_SpringDamperDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.39087223000024] Failed to read output from testmodel.py, exit status != 0: 17.691112436001276 17.715811563 17.347896424 Calling exit ...