Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.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.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001256/0.001256, allocations: 93.94 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2093/0.2093, allocations: 45.91 MB / 344 MB, free: 12.33 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003077, allocations: 4 kB / 418 MB, free: 20.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1189, allocations: 63.46 MB / 481.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.000472/0.1194, allocations: 210.9 kB / 481.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005265/0.1199, allocations: 281.8 kB / 482 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.158e-05/0.1199, allocations: 0 / 482 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.484e-06/0.1199, allocations: 0 / 482 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.978e-06/0.1199, allocations: 0 / 482 MB, free: 4.844 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:221:3-287:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Streams‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003099/0.1203, allocations: 75.78 kB / 482.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.343e-05/0.1203, allocations: 0 / 482.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.23e-05/0.1203, allocations: 0 / 482.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.241e-05/0.1203, allocations: 0 / 482.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.9e-05/0.1204, allocations: 0 / 482.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.909e-06/0.1204, allocations: 4 kB / 482.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.1205, allocations: 87.8 kB / 482.2 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.911e-06/0.1205, allocations: 3.984 kB / 482.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.1206, allocations: 25.7 kB / 482.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.937e-05/0.1207, allocations: 51.92 kB / 482.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.1207, allocations: 0 / 482.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1207, allocations: 4 kB / 482.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.805e-06/0.1207, allocations: 0 / 482.2 MB, free: 4.59 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.0002604/0.121, allocations: 357.1 kB / 482.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.121, allocations: 12.03 kB / 482.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.534e-05/0.121, allocations: 34.55 kB / 482.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.697e-05/0.1211, allocations: 0 / 482.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.1212, allocations: 163 kB / 482.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-06/0.1212, allocations: 0 / 482.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.934e-06/0.1212, allocations: 0 / 482.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.693e-05/0.1213, allocations: 41.64 kB / 482.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.278e-06/0.1213, allocations: 0 / 482.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-06/0.1213, allocations: 4 kB / 482.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1213, allocations: 3.938 kB / 482.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.655e-05/0.1213, allocations: 4 kB / 482.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001203/0.1214, allocations: 149.6 kB / 483 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.828e-05/0.1215, allocations: 14.58 kB / 483 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-06/0.1215, allocations: 96 / 483 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/0.1215, allocations: 68.27 kB / 483.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.1216, allocations: 0 / 483.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001309/0.1217, allocations: 67.33 kB / 483.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.1217, allocations: 77.11 kB / 483.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.932e-05/0.1218, allocations: 89.86 kB / 483.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.1218, allocations: 25.7 kB / 483.3 MB, free: 3.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.213e-05/0.1218, allocations: 80.14 kB / 483.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.256e-05/0.1218, allocations: 4.125 kB / 483.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.1218, allocations: 4 kB / 483.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.1219, allocations: 314.8 kB / 483.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.593e-06/0.122, allocations: 0 / 483.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.918e-06/0.122, allocations: 0 / 483.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.978e-05/0.122, allocations: 29.7 kB / 483.7 MB, free: 2.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.122, allocations: 7.938 kB / 483.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.954e-05/0.1221, allocations: 59.34 kB / 483.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.1221, allocations: 33.8 kB / 483.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-06/0.1221, allocations: 7.938 kB / 483.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.313e-06/0.1221, allocations: 0 / 483.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.1221, allocations: 0 / 483.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.1221, allocations: 0 / 483.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.323e-05/0.1222, allocations: 0 / 483.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.1222, allocations: 7.984 kB / 483.9 MB, free: 2.699 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.0001125/0.1223, allocations: 139.5 kB / 484 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-06/0.1223, allocations: 3.953 kB / 484 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.011e-06/0.1223, allocations: 3.125 kB / 484 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1223, allocations: 8 kB / 484 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1223, allocations: 0 / 484 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-06/0.1223, allocations: 0 / 484 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.1225, allocations: 149.7 kB / 484.2 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1225, allocations: 0 / 484.2 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.325e-06/0.1225, allocations: 3.953 kB / 484.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1225, allocations: 4 kB / 484.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.1225, allocations: 0 / 484.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.1225, allocations: 0 / 484.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1225, allocations: 3.938 kB / 484.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.385e-05/0.1226, allocations: 98.77 kB / 484.3 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.719e-05/0.1226, allocations: 81.3 kB / 484.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.1227, allocations: 3.953 kB / 484.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-06/0.1227, allocations: 0 / 484.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.145e-05/0.1227, allocations: 0 / 484.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.489e-06/0.1227, allocations: 4 kB / 484.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.455e-05/0.1227, allocations: 75.28 kB / 484.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1227, allocations: 4.031 kB / 484.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.123, allocations: 35.98 kB / 484.5 MB, free: 1.988 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.0007059/0.1237, allocations: 0.8046 MB / 485.3 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.58e-05/0.1238, allocations: 63.33 kB / 485.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1238, allocations: 0 / 485.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.794e-05/0.1238, allocations: 55.41 kB / 485.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.562e-05/0.1239, allocations: 4.078 kB / 485.4 MB, free: 1.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00027/0.1242, allocations: 120.4 kB / 485.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.1244, allocations: 0.6731 MB / 486.2 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.085e-06/0.1244, allocations: 3.984 kB / 486.2 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.109e-05/0.1245, allocations: 7.438 kB / 486.2 MB, free: 188 kB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1245, allocations: 0 / 486.2 MB, free: 188 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01041/0.1349, allocations: 1.536 MB / 487.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/0.1351, allocations: 209.2 kB / 487.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/1.857, allocations: 0 / 487.9 MB, free: 14.51 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat