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.00127/0.00127, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2454/0.2454, allocations: 46.12 MB / 344.2 MB, free: 11.57 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.002204/0.002204, allocations: 82.89 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1178, allocations: 62.45 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001715/0.1195, allocations: 478.7 kB / 480.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006294/0.1202, allocations: 214.1 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.332e-05/0.1202, allocations: 0 / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.611e-05/0.1202, allocations: 0 / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.424e-06/0.1202, allocations: 4 kB / 480.9 MB, free: 4.473 MB / 350.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.0003137/0.1206, allocations: 43.78 kB / 480.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.175e-05/0.1206, allocations: 4 kB / 480.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.794e-05/0.1207, allocations: 0 / 480.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.139e-05/0.1207, allocations: 7.969 kB / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.206e-05/0.1207, allocations: 0 / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.263e-06/0.1207, allocations: 0 / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1209, allocations: 51.95 kB / 481 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.191e-05/0.1209, allocations: 0 / 481 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.293e-05/0.1209, allocations: 7.938 kB / 481 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.1211, allocations: 43.94 kB / 481 MB, free: 4.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1211, allocations: 4 kB / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1211, allocations: 0 / 481 MB, free: 4.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1211, allocations: 0 / 481 MB, free: 4.312 MB / 350.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.0004326/0.1215, allocations: 357.2 kB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.1216, allocations: 11.97 kB / 481.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.919e-05/0.1217, allocations: 30.75 kB / 481.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.177e-05/0.1217, allocations: 4.938 kB / 481.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.1219, allocations: 168.4 kB / 481.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1219, allocations: 384 / 481.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-06/0.1219, allocations: 4.375 kB / 481.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.927e-05/0.122, allocations: 26.27 kB / 481.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.122, allocations: 7.938 kB / 481.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.122, allocations: 0 / 481.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.122, allocations: 0 / 481.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.086e-05/0.122, allocations: 3.938 kB / 481.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.1222, allocations: 145.7 kB / 481.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.713e-05/0.1223, allocations: 22.59 kB / 481.8 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.675e-05/0.1223, allocations: 8.859 kB / 481.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.308e-06/0.1223, allocations: 0 / 481.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.893e-05/0.1224, allocations: 60.33 kB / 481.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1224, allocations: 0 / 481.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002013/0.1226, allocations: 75.27 kB / 481.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.1227, allocations: 77.11 kB / 482 MB, free: 3.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.049e-05/0.1228, allocations: 89.86 kB / 482.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.1228, allocations: 29.83 kB / 482.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.617e-05/0.1228, allocations: 80.14 kB / 482.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.1229, allocations: 0 / 482.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.1229, allocations: 17.72 kB / 482.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.1231, allocations: 310.8 kB / 482.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.728e-06/0.1231, allocations: 0 / 482.5 MB, free: 2.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.274e-06/0.1231, allocations: 4 kB / 482.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.47e-05/0.1232, allocations: 64.31 kB / 482.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1232, allocations: 0 / 482.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001006/0.1233, allocations: 67.34 kB / 482.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.034e-05/0.1233, allocations: 37.64 kB / 482.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1233, allocations: 3.938 kB / 482.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1234, allocations: 0 / 482.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.1234, allocations: 0 / 482.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.1234, allocations: 0 / 482.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.577e-05/0.1234, allocations: 0 / 482.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.948e-06/0.1234, allocations: 3.984 kB / 482.7 MB, free: 2.352 MB / 350.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.0001194/0.1235, allocations: 139.6 kB / 482.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.114e-06/0.1236, allocations: 0 / 482.9 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.239e-05/0.1236, allocations: 7.062 kB / 482.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1236, allocations: 0 / 482.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1236, allocations: 0 / 482.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1236, allocations: 7.938 kB / 482.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.1237, allocations: 145.7 kB / 483 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1237, allocations: 0 / 483 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1237, allocations: 0 / 483 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.1238, allocations: 0 / 483 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.1238, allocations: 7.938 kB / 483 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.1238, allocations: 4 kB / 483 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1238, allocations: 4 kB / 483 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.1239, allocations: 90.77 kB / 483.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.124, allocations: 85.38 kB / 483.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.124, allocations: 7.938 kB / 483.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-06/0.124, allocations: 0 / 483.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.196e-05/0.124, allocations: 4.031 kB / 483.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.124, allocations: 0 / 483.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.1241, allocations: 79.28 kB / 483.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1241, allocations: 0 / 483.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00023/0.1243, allocations: 15.98 kB / 483.3 MB, free: 1.66 MB / 350.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.000833/0.1252, allocations: 0.7386 MB / 484 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.642e-05/0.1253, allocations: 59.39 kB / 484.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1253, allocations: 0 / 484.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.758e-05/0.1253, allocations: 55.41 kB / 484.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.1255, allocations: 7.938 kB / 484.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002968/0.1258, allocations: 118.6 kB / 484.3 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.1261, allocations: 0.6691 MB / 484.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.601e-06/0.1261, allocations: 4 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.511e-05/0.1262, allocations: 11.44 kB / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1262, allocations: 0 / 485 MB, free: 15.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.1485, allocations: 1.368 MB / 486.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.045, allocations: 11.95 kB / 486.3 MB, free: 14.59 MB / 366.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 & /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)