Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001584/0.001584, allocations: 112.3 kB / 20.22 MB, free: 1.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001502, allocations: 215.5 kB / 23.48 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 230.2 MB / 256.8 MB, free: 8.551 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2278/0.2278, allocations: 46.89 MB / 360 MB, free: 4.703 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002372/0.002372, allocations: 83.86 kB / 0.4951 GB, free: 8.547 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2957, allocations: 65.99 MB / 0.5595 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001521/0.2973, allocations: 488.9 kB / 0.56 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005553/0.2978, allocations: 217.7 kB / 0.5602 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.041e-05/0.2978, allocations: 0 / 0.5602 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.527e-05/0.2978, allocations: 0 / 0.5602 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.97e-06/0.2978, allocations: 0 / 0.5602 GB, free: 4.297 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.2981, allocations: 47.83 kB / 0.5602 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.552e-05/0.2982, allocations: 0 / 0.5602 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.825e-05/0.2982, allocations: 0 / 0.5602 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.509e-05/0.2982, allocations: 0 / 0.5602 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.478e-05/0.2982, allocations: 7.984 kB / 0.5602 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.2983, allocations: 4 kB / 0.5602 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.2984, allocations: 51.89 kB / 0.5603 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-06/0.2984, allocations: 0 / 0.5603 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.2984, allocations: 7.984 kB / 0.5603 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.2985, allocations: 43.69 kB / 0.5603 GB, free: 4.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2985, allocations: 0 / 0.5603 GB, free: 4.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2985, allocations: 0 / 0.5603 GB, free: 4.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.2985, allocations: 0 / 0.5603 GB, free: 4.141 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003561/0.2989, allocations: 359.1 kB / 0.5607 GB, free: 3.734 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2989, allocations: 8.031 kB / 0.5607 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.357e-05/0.299, allocations: 38.69 kB / 0.5607 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.209e-05/0.299, allocations: 4.938 kB / 0.5607 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.2991, allocations: 160.4 kB / 0.5609 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.2991, allocations: 384 / 0.5609 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.71e-06/0.2991, allocations: 384 / 0.5609 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.734e-05/0.2992, allocations: 34.25 kB / 0.5609 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2992, allocations: 3.938 kB / 0.5609 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.252e-06/0.2992, allocations: 0 / 0.5609 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.2992, allocations: 0 / 0.5609 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.511e-05/0.2992, allocations: 0 / 0.5609 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.2994, allocations: 153.7 kB / 0.5611 GB, free: 3.238 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.614e-05/0.2994, allocations: 22.5 kB / 0.5611 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.412e-05/0.2995, allocations: 4.859 kB / 0.5611 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.017e-06/0.2995, allocations: 96 / 0.5611 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.2995, allocations: 60.27 kB / 0.5611 GB, free: 3.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.2995, allocations: 0 / 0.5611 GB, free: 3.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001785/0.2997, allocations: 71.34 kB / 0.5612 GB, free: 3.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.2997, allocations: 85.03 kB / 0.5613 GB, free: 2.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.539e-05/0.2998, allocations: 93.81 kB / 0.5614 GB, free: 2.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.2998, allocations: 25.7 kB / 0.5614 GB, free: 2.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.426e-05/0.2999, allocations: 84.08 kB / 0.5615 GB, free: 2.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.2999, allocations: 0 / 0.5615 GB, free: 2.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.2999, allocations: 13.72 kB / 0.5615 GB, free: 2.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3, allocations: 314.8 kB / 0.5618 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.3001, allocations: 4.125 kB / 0.5618 GB, free: 2.383 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.235e-05/0.3001, allocations: 4 kB / 0.5618 GB, free: 2.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.368e-05/0.3001, allocations: 56.27 kB / 0.5619 GB, free: 2.309 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3001, allocations: 4 kB / 0.5619 GB, free: 2.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.467e-05/0.3002, allocations: 59.39 kB / 0.5619 GB, free: 2.234 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.3002, allocations: 37.7 kB / 0.562 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.3002, allocations: 7.875 kB / 0.562 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3003, allocations: 0 / 0.562 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.825e-06/0.3003, allocations: 4.094 kB / 0.562 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3003, allocations: 7.938 kB / 0.562 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.516e-05/0.3003, allocations: 0 / 0.562 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.3003, allocations: 3.984 kB / 0.562 GB, free: 2.168 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001384/0.3004, allocations: 139.5 kB / 0.5621 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.3004, allocations: 0 / 0.5621 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.213e-05/0.3004, allocations: 7.062 kB / 0.5621 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.3004, allocations: 7.984 kB / 0.5621 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3005, allocations: 0 / 0.5621 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.3005, allocations: 0 / 0.5621 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.3006, allocations: 149.7 kB / 0.5623 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3006, allocations: 0 / 0.5623 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3006, allocations: 0 / 0.5623 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.3006, allocations: 0 / 0.5623 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.3006, allocations: 7.938 kB / 0.5623 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3006, allocations: 0 / 0.5623 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3006, allocations: 0 / 0.5623 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/0.3007, allocations: 94.77 kB / 0.5624 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.3008, allocations: 81.14 kB / 0.5624 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.3008, allocations: 3.938 kB / 0.5625 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.646e-06/0.3008, allocations: 0 / 0.5625 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.2e-05/0.3008, allocations: 4 kB / 0.5625 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.3008, allocations: 4 kB / 0.5625 GB, free: 1.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.549e-05/0.3008, allocations: 75.28 kB / 0.5625 GB, free: 1.496 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3008, allocations: 3.938 kB / 0.5625 GB, free: 1.492 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002121/0.301, allocations: 19.92 kB / 0.5626 GB, free: 1.473 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.000825/0.3019, allocations: 0.7208 MB / 0.5633 GB, free: 0.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001088/0.302, allocations: 67.33 kB / 0.5633 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.302, allocations: 0 / 0.5633 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.661e-05/0.302, allocations: 55.41 kB / 0.5634 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.3021, allocations: 8.125 kB / 0.5634 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.3024, allocations: 122.6 kB / 0.5635 GB, free: 448 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.3028, allocations: 0.669 MB / 0.5642 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.691e-06/0.3028, allocations: 0 / 0.5642 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.39e-05/0.3028, allocations: 7.438 kB / 0.5642 GB, free: 15.73 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3028, allocations: 0 / 0.5642 GB, free: 15.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.3254, allocations: 1.393 MB / 0.5655 GB, free: 14.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.18/8.505, allocations: 12.92 kB / 0.5655 GB, free: 14.38 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.404747316031717] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.587823714944534 8.611622032 8.306890569 Calling exit ...