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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001759/0.001764, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2567/0.2567, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB 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.002293/0.002293, allocations: 83.84 kB / 480.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2851, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001477/0.2866, allocations: 494.5 kB / 0.5311 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005062/0.2871, allocations: 209.9 kB / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.2871, allocations: 0 / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.083e-05/0.2871, allocations: 0 / 0.5313 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-06/0.2872, allocations: 0 / 0.5313 GB, free: 12.87 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.00026/0.2874, allocations: 47.83 kB / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.391e-05/0.2875, allocations: 0 / 0.5313 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.234e-05/0.2875, allocations: 7.953 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.235e-05/0.2875, allocations: 0 / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.676e-05/0.2876, allocations: 0 / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.17e-06/0.2876, allocations: 4 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.2877, allocations: 54.64 kB / 0.5314 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.276e-06/0.2877, allocations: 3.984 kB / 0.5314 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.2877, allocations: 0 / 0.5314 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001062/0.2878, allocations: 40.78 kB / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.2879, allocations: 0 / 0.5314 GB, free: 12.78 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2879, allocations: 3.938 kB / 0.5314 GB, free: 12.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.2879, allocations: 1.094 kB / 0.5314 GB, free: 12.77 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.0003331/0.2882, allocations: 352.2 kB / 0.5317 GB, free: 12.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2882, allocations: 9.688 kB / 0.5318 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.44e-05/0.2883, allocations: 34.75 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.98e-05/0.2883, allocations: 1.906 kB / 0.5318 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.2884, allocations: 164.4 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.2884, allocations: 1.25 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-06/0.2885, allocations: 1.312 kB / 0.5319 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.515e-05/0.2885, allocations: 36.38 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.2886, allocations: 5 kB / 0.532 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.771e-06/0.2886, allocations: 3.938 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.2886, allocations: 0 / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.764e-05/0.2886, allocations: 5.969 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.2887, allocations: 150.7 kB / 0.5321 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.99e-05/0.2888, allocations: 16.58 kB / 0.5322 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.413e-05/0.2888, allocations: 6.047 kB / 0.5322 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.592e-06/0.2888, allocations: 0.9375 kB / 0.5322 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.2889, allocations: 57.17 kB / 0.5322 GB, free: 11.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.2889, allocations: 0 / 0.5322 GB, free: 11.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001559/0.2891, allocations: 79.58 kB / 0.5323 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.2891, allocations: 77.11 kB / 0.5324 GB, free: 11.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.783e-05/0.2892, allocations: 95.16 kB / 0.5325 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.2892, allocations: 25.7 kB / 0.5325 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.767e-05/0.2892, allocations: 80.14 kB / 0.5326 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.2893, allocations: 1.375 kB / 0.5326 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.2893, allocations: 11.78 kB / 0.5326 GB, free: 11.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.2894, allocations: 311 kB / 0.5329 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.609e-05/0.2895, allocations: 9.312 kB / 0.5329 GB, free: 11.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-06/0.2895, allocations: 5.219 kB / 0.5329 GB, free: 11.06 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.459e-05/0.2895, allocations: 67 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2895, allocations: 0.5 kB / 0.5329 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.732e-05/0.2896, allocations: 57.97 kB / 0.533 GB, free: 10.92 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.2897, allocations: 31.77 kB / 0.533 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2897, allocations: 3.938 kB / 0.533 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.2897, allocations: 1 kB / 0.533 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.766e-06/0.2897, allocations: 8.078 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.2897, allocations: 1.156 kB / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.359e-05/0.2897, allocations: 0 / 0.533 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.2897, allocations: 1.125 kB / 0.533 GB, free: 10.88 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.123e-05/0.2898, allocations: 141.7 kB / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-06/0.2898, allocations: 1.094 kB / 0.5332 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.397e-06/0.2899, allocations: 7.062 kB / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2899, allocations: 1.094 kB / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2899, allocations: 4 kB / 0.5332 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.2899, allocations: 4 kB / 0.5332 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.29, allocations: 147.9 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.29, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.29, allocations: 1.125 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.29, allocations: 0 / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.29, allocations: 5 kB / 0.5333 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.29, allocations: 7.875 kB / 0.5334 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.29, allocations: 1.219 kB / 0.5334 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.2902, allocations: 96.72 kB / 0.5334 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.901e-05/0.2902, allocations: 78.2 kB / 0.5335 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.2902, allocations: 5.125 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-06/0.2902, allocations: 0 / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.082e-05/0.2903, allocations: 1.094 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.2903, allocations: 1.031 kB / 0.5335 GB, free: 10.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.428e-05/0.2903, allocations: 75.28 kB / 0.5336 GB, free: 10.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2903, allocations: 0 / 0.5336 GB, free: 10.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.2905, allocations: 24.7 kB / 0.5336 GB, free: 10.22 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.0007877/0.2913, allocations: 0.7347 MB / 0.5343 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.649e-05/0.2914, allocations: 60.12 kB / 0.5344 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2914, allocations: 1.094 kB / 0.5344 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.538e-05/0.2915, allocations: 57.88 kB / 0.5345 GB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.2916, allocations: 2.531 kB / 0.5345 GB, free: 9.395 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002818/0.2919, allocations: 115.2 kB / 0.5346 GB, free: 9.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.2922, allocations: 0.6704 MB / 0.5352 GB, free: 8.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.089e-06/0.2922, allocations: 3.938 kB / 0.5352 GB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.125e-05/0.2922, allocations: 7.438 kB / 0.5352 GB, free: 8.547 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2922, allocations: 1.75 kB / 0.5352 GB, free: 8.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.3143, allocations: 1.405 MB / 0.5366 GB, free: 7.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.234/8.549, allocations: 13.61 kB / 0.5366 GB, free: 7.703 MB / 398.1 MB (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)