Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_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.001082/0.001082, allocations: 94.39 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001495, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1978/0.1978, allocations: 45.91 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002478/0.0002478, allocations: 8 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1198, allocations: 63.47 MB / 481.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005615/0.1204, allocations: 206.9 kB / 481.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005125/0.1209, allocations: 198.2 kB / 482 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.724e-05/0.1209, allocations: 0 / 482 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.273e-05/0.121, allocations: 0 / 482 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.842e-06/0.121, allocations: 0 / 482 MB, free: 4.844 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0002588/0.1212, allocations: 43.89 kB / 482.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.924e-05/0.1213, allocations: 4 kB / 482.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.476e-05/0.1213, allocations: 0 / 482.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.492e-05/0.1214, allocations: 0 / 482.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.625e-05/0.1214, allocations: 4 kB / 482.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.961e-06/0.1214, allocations: 0 / 482.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.1215, allocations: 43.95 kB / 482.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.021e-06/0.1215, allocations: 0 / 482.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.211e-05/0.1216, allocations: 29.7 kB / 482.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.017e-05/0.1217, allocations: 35.89 kB / 482.2 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1217, allocations: 0 / 482.2 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1217, allocations: 0 / 482.2 MB, free: 4.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1217, allocations: 3.938 kB / 482.2 MB, free: 4.676 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.0003707/0.1221, allocations: 345.1 kB / 482.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.1221, allocations: 12.03 kB / 482.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.495e-05/0.1222, allocations: 34.5 kB / 482.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.601e-05/0.1222, allocations: 4 kB / 482.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.1224, allocations: 167 kB / 482.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.1224, allocations: 3.984 kB / 482.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.527e-06/0.1224, allocations: 0 / 482.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.674e-05/0.1225, allocations: 37.69 kB / 482.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1225, allocations: 0 / 482.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.125e-06/0.1225, allocations: 0 / 482.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1225, allocations: 0 / 482.8 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.125e-05/0.1225, allocations: 4 kB / 482.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.1227, allocations: 145.6 kB / 482.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.782e-05/0.1227, allocations: 22.52 kB / 483 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.1227, allocations: 8.953 kB / 483 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.1228, allocations: 3.984 kB / 483 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.421e-05/0.1228, allocations: 60.27 kB / 483 MB, free: 3.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1228, allocations: 0 / 483 MB, free: 3.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001729/0.123, allocations: 59.41 kB / 483.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.1231, allocations: 81.17 kB / 483.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.875e-05/0.1232, allocations: 93.86 kB / 483.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1232, allocations: 29.69 kB / 483.3 MB, free: 3.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.1232, allocations: 88.08 kB / 483.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.1233, allocations: 0 / 483.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.1233, allocations: 0 / 483.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.1234, allocations: 314.8 kB / 483.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.085e-06/0.1235, allocations: 0 / 483.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.332e-06/0.1235, allocations: 0 / 483.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.544e-05/0.1235, allocations: 37.72 kB / 483.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1235, allocations: 0 / 483.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.069e-05/0.1236, allocations: 63.39 kB / 483.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.1236, allocations: 29.7 kB / 483.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.1236, allocations: 0 / 483.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.1237, allocations: 0 / 483.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-06/0.1237, allocations: 0 / 483.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.1237, allocations: 0 / 483.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.622e-05/0.1237, allocations: 4 kB / 483.8 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1237, allocations: 3.938 kB / 483.8 MB, free: 2.789 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001482/0.1239, allocations: 147.5 kB / 484 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.1239, allocations: 4 kB / 484 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.638e-06/0.1239, allocations: 7.109 kB / 484 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1239, allocations: 3.938 kB / 484 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1239, allocations: 0 / 484 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1239, allocations: 0 / 484 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.529e-05/0.124, allocations: 141.7 kB / 484.1 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.124, allocations: 7.953 kB / 484.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.124, allocations: 0 / 484.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.124, allocations: 4 kB / 484.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.124, allocations: 0 / 484.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.124, allocations: 0 / 484.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.124, allocations: 3.984 kB / 484.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.545e-05/0.1241, allocations: 86.84 kB / 484.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.1242, allocations: 85.25 kB / 484.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.1242, allocations: 3.984 kB / 484.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.1242, allocations: 4 kB / 484.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.587e-05/0.1242, allocations: 7.969 kB / 484.3 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.1242, allocations: 4 kB / 484.3 MB, free: 2.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.676e-05/0.1243, allocations: 75.28 kB / 484.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1243, allocations: 3.938 kB / 484.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000258/0.1245, allocations: 20 kB / 484.4 MB, free: 2.086 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006412/0.1252, allocations: 0.7185 MB / 485.1 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.84e-05/0.1253, allocations: 59.41 kB / 485.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1253, allocations: 4 kB / 485.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.774e-05/0.1253, allocations: 59.33 kB / 485.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1255, allocations: 4 kB / 485.2 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.1258, allocations: 104.5 kB / 485.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.1262, allocations: 0.6809 MB / 486 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.294e-06/0.1262, allocations: 4 kB / 486 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.1262, allocations: 7.438 kB / 486 MB, free: 360 kB / 350.1 MB Notification: Performance of SimCode: time 1.854e-06/0.1262, allocations: 0 / 486 MB, free: 360 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01202/0.1383, allocations: 1.166 MB / 487.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002348/0.1385, allocations: 216.5 kB / 487.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/1.931, allocations: 0 / 487.4 MB, free: 15.04 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat