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.001407/0.001407, allocations: 110.5 kB / 19.74 MB, free: 2.586 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.00162/0.00162, allocations: 217 kB / 22.92 MB, free: 5.559 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.302/1.302, allocations: 230.2 MB / 256.1 MB, free: 8.621 MB / 206.1 MB " [Timeout remaining time 179] 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.2039/0.2039, allocations: 46.88 MB / 359.3 MB, free: 4.949 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.002121/0.002121, allocations: 87.84 kB / 0.494 GB, free: 9.105 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2676, allocations: 65.99 MB / 0.5584 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001358/0.269, allocations: 481.1 kB / 0.5588 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004906/0.2695, allocations: 217.7 kB / 0.5591 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.131e-05/0.2695, allocations: 4 kB / 0.5591 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.929e-06/0.2695, allocations: 0 / 0.5591 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.589e-06/0.2695, allocations: 0 / 0.5591 GB, free: 4.508 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.0002466/0.2697, allocations: 43.83 kB / 0.5591 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.018e-05/0.2698, allocations: 11.98 kB / 0.5591 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.119e-05/0.2698, allocations: 0 / 0.5591 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.206e-05/0.2698, allocations: 0 / 0.5591 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.779e-05/0.2699, allocations: 0 / 0.5591 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.659e-06/0.2699, allocations: 4 kB / 0.5591 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.27, allocations: 51.89 kB / 0.5592 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.48e-06/0.27, allocations: 0 / 0.5592 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.444e-05/0.27, allocations: 4 kB / 0.5592 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.2701, allocations: 55.66 kB / 0.5592 GB, free: 4.344 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2701, allocations: 0 / 0.5592 GB, free: 4.344 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2701, allocations: 0 / 0.5592 GB, free: 4.344 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.2701, allocations: 0 / 0.5592 GB, free: 4.344 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.0003341/0.2704, allocations: 355.1 kB / 0.5596 GB, free: 3.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.2705, allocations: 8.031 kB / 0.5596 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.58e-05/0.2705, allocations: 30.75 kB / 0.5596 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.113e-05/0.2705, allocations: 4.938 kB / 0.5596 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.491e-05/0.2706, allocations: 160.4 kB / 0.5598 GB, free: 3.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.2706, allocations: 4.375 kB / 0.5598 GB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-06/0.2706, allocations: 384 / 0.5598 GB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.412e-05/0.2707, allocations: 38.25 kB / 0.5598 GB, free: 3.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.2707, allocations: 3.938 kB / 0.5598 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.611e-06/0.2707, allocations: 0 / 0.5598 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.2707, allocations: 0 / 0.5598 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.544e-05/0.2707, allocations: 3.938 kB / 0.5598 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001235/0.2709, allocations: 149.7 kB / 0.5599 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.849e-05/0.2709, allocations: 18.58 kB / 0.56 GB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.2709, allocations: 8.844 kB / 0.56 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.172e-06/0.2709, allocations: 0 / 0.56 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/0.271, allocations: 60.33 kB / 0.56 GB, free: 3.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.271, allocations: 0 / 0.56 GB, free: 3.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001475/0.2711, allocations: 71.28 kB / 0.5601 GB, free: 3.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.2712, allocations: 85.03 kB / 0.5602 GB, free: 3.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.147e-05/0.2712, allocations: 97.94 kB / 0.5603 GB, free: 3.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.2712, allocations: 29.64 kB / 0.5603 GB, free: 3.008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.806e-05/0.2712, allocations: 80.14 kB / 0.5604 GB, free: 2.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.121e-05/0.2713, allocations: 0 / 0.5604 GB, free: 2.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.2713, allocations: 13.72 kB / 0.5604 GB, free: 2.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2714, allocations: 310.8 kB / 0.5607 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.334e-06/0.2714, allocations: 0 / 0.5607 GB, free: 2.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.572e-06/0.2714, allocations: 4 kB / 0.5607 GB, free: 2.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.216e-05/0.2715, allocations: 64.33 kB / 0.5608 GB, free: 2.512 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2715, allocations: 0 / 0.5608 GB, free: 2.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.733e-05/0.2715, allocations: 67.33 kB / 0.5608 GB, free: 2.434 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.2716, allocations: 33.7 kB / 0.5609 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.2716, allocations: 3.938 kB / 0.5609 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.287e-06/0.2716, allocations: 0 / 0.5609 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.2716, allocations: 0 / 0.5609 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.2716, allocations: 0 / 0.5609 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.27e-05/0.2716, allocations: 0 / 0.5609 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-06/0.2716, allocations: 4.031 kB / 0.5609 GB, free: 2.387 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 8.564e-05/0.2717, allocations: 143.5 kB / 0.561 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.873e-06/0.2717, allocations: 0 / 0.561 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.055e-06/0.2717, allocations: 7.062 kB / 0.561 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.52e-07/0.2717, allocations: 0 / 0.561 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.2717, allocations: 4 kB / 0.561 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-06/0.2717, allocations: 0 / 0.561 GB, free: 2.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.385e-05/0.2718, allocations: 145.7 kB / 0.5611 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.2718, allocations: 0 / 0.5611 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.2718, allocations: 0 / 0.5611 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-06/0.2718, allocations: 4 kB / 0.5611 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.597e-06/0.2718, allocations: 7.938 kB / 0.5612 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.2718, allocations: 0 / 0.5612 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2718, allocations: 3.984 kB / 0.5612 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.776e-05/0.2719, allocations: 90.77 kB / 0.5612 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.2719, allocations: 81.11 kB / 0.5613 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.272, allocations: 3.938 kB / 0.5613 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.758e-06/0.272, allocations: 8.031 kB / 0.5613 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.128e-05/0.272, allocations: 3.938 kB / 0.5613 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.272, allocations: 0 / 0.5613 GB, free: 1.789 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.772e-05/0.272, allocations: 79.28 kB / 0.5614 GB, free: 1.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.272, allocations: 0 / 0.5614 GB, free: 1.711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002091/0.2722, allocations: 19.94 kB / 0.5614 GB, free: 1.691 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.0006709/0.2729, allocations: 0.7277 MB / 0.5621 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.848e-05/0.273, allocations: 63.39 kB / 0.5622 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.273, allocations: 0 / 0.5622 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.809e-05/0.273, allocations: 55.41 kB / 0.5623 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001124/0.2731, allocations: 9.562 kB / 0.5623 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002398/0.2734, allocations: 118.8 kB / 0.5624 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.2736, allocations: 0.669 MB / 0.563 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.888e-06/0.2736, allocations: 0 / 0.563 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.427e-05/0.2736, allocations: 11.38 kB / 0.563 GB, free: 15.95 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2736, allocations: 0 / 0.563 GB, free: 15.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.2945, allocations: 1.389 MB / 0.5644 GB, free: 14.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.811/7.106, allocations: 14.67 kB / 0.5644 GB, free: 14.61 MB / 414.1 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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: 9.541126313997665]