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.001342/0.001342, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001435/0.001435, allocations: 212.4 kB / 24.54 MB, free: 4.016 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.467/1.467, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.2301/0.2301, allocations: 46.94 MB / 361.6 MB, free: 4.188 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.002428/0.002428, allocations: 79.88 kB / 0.497 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2811, allocations: 66.08 MB / 0.5615 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001632/0.2828, allocations: 485 kB / 0.562 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005942/0.2834, allocations: 233.7 kB / 0.5622 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.2834, allocations: 0 / 0.5622 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.411e-05/0.2834, allocations: 0 / 0.5622 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.979e-06/0.2834, allocations: 0 / 0.5622 GB, free: 3.613 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.0002824/0.2837, allocations: 47.83 kB / 0.5622 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.116e-05/0.2837, allocations: 3.984 kB / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.446e-05/0.2838, allocations: 0 / 0.5622 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.581e-05/0.2838, allocations: 4 kB / 0.5622 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.858e-05/0.2838, allocations: 0 / 0.5622 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.4e-06/0.2838, allocations: 4 kB / 0.5622 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000131/0.2839, allocations: 51.95 kB / 0.5623 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-06/0.2839, allocations: 4 kB / 0.5623 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.681e-05/0.284, allocations: 0 / 0.5623 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.2841, allocations: 51.66 kB / 0.5623 GB, free: 3.453 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2841, allocations: 3.938 kB / 0.5623 GB, free: 3.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2841, allocations: 0 / 0.5623 GB, free: 3.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.2841, allocations: 0 / 0.5623 GB, free: 3.449 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.0003504/0.2845, allocations: 278.1 kB / 0.5626 GB, free: 3.141 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.2845, allocations: 12.03 kB / 0.5626 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.488e-05/0.2845, allocations: 34.75 kB / 0.5626 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.143e-05/0.2845, allocations: 0.9375 kB / 0.5626 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.166e-05/0.2846, allocations: 106.5 kB / 0.5628 GB, free: 2.957 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.2846, allocations: 4.375 kB / 0.5628 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.2847, allocations: 384 / 0.5628 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.52e-05/0.2847, allocations: 26.27 kB / 0.5628 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2848, allocations: 3.938 kB / 0.5628 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.2848, allocations: 7.984 kB / 0.5628 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-06/0.2848, allocations: 0 / 0.5628 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.884e-05/0.2848, allocations: 7.938 kB / 0.5628 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001275/0.2849, allocations: 112.8 kB / 0.5629 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.905e-05/0.285, allocations: 22.61 kB / 0.5629 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.908e-05/0.285, allocations: 4.859 kB / 0.5629 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.094e-06/0.285, allocations: 0 / 0.5629 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.2851, allocations: 60.33 kB / 0.563 GB, free: 2.637 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.2851, allocations: 0 / 0.563 GB, free: 2.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001624/0.2852, allocations: 75.27 kB / 0.5631 GB, free: 2.551 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.2853, allocations: 77.11 kB / 0.5631 GB, free: 2.457 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.025e-05/0.2853, allocations: 97.81 kB / 0.5632 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.2854, allocations: 25.7 kB / 0.5633 GB, free: 2.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.33e-05/0.2854, allocations: 80.14 kB / 0.5633 GB, free: 2.238 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.2854, allocations: 3.938 kB / 0.5633 GB, free: 2.234 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.2854, allocations: 13.72 kB / 0.5633 GB, free: 2.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2856, allocations: 319 kB / 0.5637 GB, free: 1.895 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.218e-06/0.2856, allocations: 0 / 0.5637 GB, free: 1.895 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.19e-06/0.2856, allocations: 0 / 0.5637 GB, free: 1.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.579e-05/0.2857, allocations: 64.27 kB / 0.5637 GB, free: 1.816 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2857, allocations: 0 / 0.5637 GB, free: 1.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.675e-05/0.2857, allocations: 67.33 kB / 0.5638 GB, free: 1.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.2858, allocations: 29.7 kB / 0.5638 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2858, allocations: 7.938 kB / 0.5638 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2858, allocations: 0 / 0.5638 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-06/0.2858, allocations: 4.094 kB / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.2858, allocations: 0 / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.319e-05/0.2858, allocations: 0 / 0.5638 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.2858, allocations: 0 / 0.5638 GB, free: 1.691 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 9.201e-05/0.2859, allocations: 135.5 kB / 0.5639 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-06/0.2859, allocations: 0 / 0.5639 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.198e-05/0.2859, allocations: 14.92 kB / 0.564 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.2859, allocations: 0 / 0.564 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.2859, allocations: 3.938 kB / 0.564 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2859, allocations: 8 kB / 0.564 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.692e-05/0.286, allocations: 112.8 kB / 0.5641 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.286, allocations: 0 / 0.5641 GB, free: 1.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.465e-06/0.286, allocations: 4 kB / 0.5641 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.286, allocations: 0 / 0.5641 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.286, allocations: 7.938 kB / 0.5641 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.286, allocations: 0 / 0.5641 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.286, allocations: 0 / 0.5641 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001116/0.2862, allocations: 94.77 kB / 0.5642 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-06/0.2862, allocations: 4 kB / 0.5642 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.2862, allocations: 3.938 kB / 0.5642 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.018e-05/0.2862, allocations: 3.984 kB / 0.5642 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.248e-05/0.2862, allocations: 0 / 0.5642 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.2862, allocations: 4 kB / 0.5642 GB, free: 1.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.304e-05/0.2862, allocations: 75.28 kB / 0.5643 GB, free: 1.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2862, allocations: 0 / 0.5643 GB, free: 1.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.2865, allocations: 23.88 kB / 0.5643 GB, free: 1.121 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.0007961/0.2872, allocations: 0.712 MB / 0.565 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001024/0.2873, allocations: 55.41 kB / 0.565 GB, free: 336 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2874, allocations: 0 / 0.565 GB, free: 336 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.193e-05/0.2874, allocations: 59.41 kB / 0.5651 GB, free: 264 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001213/0.2875, allocations: 7.938 kB / 0.5651 GB, free: 256 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002972/0.2878, allocations: 118.8 kB / 0.5652 GB, free: 96 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.2882, allocations: 0.6729 MB / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.91e-06/0.2882, allocations: 0 / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.355e-05/0.2882, allocations: 7.438 kB / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2882, allocations: 0 / 0.5659 GB, free: 15.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.3109, allocations: 1.422 MB / 0.5673 GB, free: 14.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.091/8.402, allocations: 11.38 kB / 0.5673 GB, free: 14.02 MB / 414.1 MB " [Timeout remaining time 652] (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: 11.13085852470249] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.471233348827809 8.486473868 8.199337608 Calling exit ...