Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001789/0.001788, allocations: 117.7 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002118/0.002119, allocations: 211.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247 MB, free: 10.43 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.2533/0.2533, allocations: 46.11 MB / 344.3 MB, free: 11.46 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.002236/0.002236, allocations: 75.88 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3289, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001922/0.3309, allocations: 482.8 kB / 0.531 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.3321, allocations: 0.7859 MB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.495e-05/0.3322, allocations: 0 / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.236e-05/0.3322, allocations: 5.344 kB / 0.5318 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.3324, allocations: 5.344 kB / 0.5318 GB, free: 12.39 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005839/0.333, allocations: 62.31 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.341e-05/0.333, allocations: 2.812 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.91e-05/0.3331, allocations: 1.062 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.3331, allocations: 1.375 kB / 0.5319 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.762e-05/0.3332, allocations: 6.172 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.877e-06/0.3332, allocations: 5 kB / 0.5319 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001587/0.3334, allocations: 60.81 kB / 0.5319 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.3334, allocations: 0 / 0.5319 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.393e-05/0.3334, allocations: 5.188 kB / 0.532 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.3336, allocations: 50.8 kB / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3336, allocations: 0 / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3336, allocations: 0 / 0.532 GB, free: 12.28 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3336, allocations: 1.375 kB / 0.532 GB, free: 12.28 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.0004225/0.334, allocations: 357.8 kB / 0.5323 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3341, allocations: 8.156 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.323e-05/0.3341, allocations: 30.75 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.207e-05/0.3341, allocations: 2.031 kB / 0.5324 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.3343, allocations: 162.3 kB / 0.5325 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.3343, allocations: 4.375 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.3343, allocations: 2.25 kB / 0.5325 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.403e-05/0.3344, allocations: 40.33 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3344, allocations: 3.938 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.3344, allocations: 0 / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3345, allocations: 0 / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.786e-05/0.3345, allocations: 1.844 kB / 0.5326 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001497/0.3346, allocations: 151.5 kB / 0.5327 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.394e-05/0.3347, allocations: 24.44 kB / 0.5328 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.68e-05/0.3347, allocations: 6.828 kB / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-06/0.3347, allocations: 0 / 0.5328 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.698e-05/0.3348, allocations: 62.02 kB / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3348, allocations: 0 / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001717/0.335, allocations: 67.25 kB / 0.5329 GB, free: 11.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.3351, allocations: 81.09 kB / 0.533 GB, free: 11.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.474e-05/0.3351, allocations: 95.92 kB / 0.5331 GB, free: 11.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.3352, allocations: 27.48 kB / 0.5331 GB, free: 10.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.637e-05/0.3352, allocations: 80.14 kB / 0.5332 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.371e-05/0.3352, allocations: 0 / 0.5332 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.3353, allocations: 15.62 kB / 0.5332 GB, free: 10.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3354, allocations: 316.8 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.104e-05/0.3354, allocations: 0 / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.367e-06/0.3354, allocations: 5.875 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.371e-05/0.3355, allocations: 68.09 kB / 0.5335 GB, free: 10.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3355, allocations: 0 / 0.5335 GB, free: 10.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.749e-05/0.3356, allocations: 62.53 kB / 0.5336 GB, free: 10.42 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/0.3356, allocations: 37.39 kB / 0.5336 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3356, allocations: 5.031 kB / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3357, allocations: 0 / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.3357, allocations: 0 / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.3357, allocations: 4.984 kB / 0.5336 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.3357, allocations: 1.781 kB / 0.5337 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.3357, allocations: 4.031 kB / 0.5337 GB, free: 10.38 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.601e-05/0.3358, allocations: 138.6 kB / 0.5338 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.015e-05/0.3358, allocations: 3.938 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.201e-05/0.3359, allocations: 3.125 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3359, allocations: 5.375 kB / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3359, allocations: 0 / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3359, allocations: 0 / 0.5338 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.336, allocations: 156.6 kB / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.336, allocations: 0 / 0.5339 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.336, allocations: 4 kB / 0.534 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.336, allocations: 3.938 kB / 0.534 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-06/0.336, allocations: 5.531 kB / 0.534 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.336, allocations: 0 / 0.534 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.336, allocations: 1.469 kB / 0.534 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.3362, allocations: 89.23 kB / 0.534 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.529e-05/0.3362, allocations: 86.38 kB / 0.5341 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.3362, allocations: 5.125 kB / 0.5341 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.041e-05/0.3363, allocations: 4 kB / 0.5341 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.34e-05/0.3363, allocations: 1.125 kB / 0.5341 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.3363, allocations: 1.438 kB / 0.5341 GB, free: 9.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.213e-05/0.3363, allocations: 79.27 kB / 0.5342 GB, free: 9.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3363, allocations: 1 kB / 0.5342 GB, free: 9.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002273/0.3366, allocations: 17.06 kB / 0.5342 GB, free: 9.715 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.0007773/0.3374, allocations: 0.7301 MB / 0.5349 GB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001251/0.3375, allocations: 60.39 kB / 0.535 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.3375, allocations: 1.25 kB / 0.535 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.055e-05/0.3376, allocations: 58.28 kB / 0.5351 GB, free: 8.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.3377, allocations: 1.531 kB / 0.5351 GB, free: 8.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003242/0.338, allocations: 115.8 kB / 0.5352 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.3384, allocations: 0.6748 MB / 0.5358 GB, free: 8.051 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.436e-06/0.3384, allocations: 0 / 0.5358 GB, free: 8.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.375e-05/0.3384, allocations: 9.094 kB / 0.5358 GB, free: 8.043 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3384, allocations: 0 / 0.5358 GB, free: 8.043 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.365, allocations: 1.479 MB / 0.5373 GB, free: 7.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.07/8.435, allocations: 17.83 kB / 0.5373 GB, free: 7.176 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1)