Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 97.08 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001229, allocations: 178.7 kB / 17.88 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2026/0.2026, allocations: 44.23 MB / 337.1 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003621, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1209, allocations: 61.92 MB / 471.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0008892/0.1218, allocations: 203 kB / 471.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009783/0.1228, allocations: 281.4 kB / 472 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.927e-05/0.1229, allocations: 0 / 472 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.339e-05/0.1229, allocations: 0 / 472 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.843e-06/0.1229, allocations: 0 / 472 MB, free: 13.18 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.0004928/0.1234, allocations: 75.78 kB / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.428e-05/0.1235, allocations: 0 / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.623e-05/0.1235, allocations: 0 / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.347e-05/0.1236, allocations: 4 kB / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.934e-05/0.1236, allocations: 0 / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.117e-06/0.1236, allocations: 0 / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.1238, allocations: 83.86 kB / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.1239, allocations: 7.984 kB / 472.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.617e-05/0.1239, allocations: 25.7 kB / 472.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.1241, allocations: 47.92 kB / 472.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1241, allocations: 0 / 472.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.858e-06/0.1241, allocations: 0 / 472.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1241, allocations: 7.875 kB / 472.3 MB, free: 12.92 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.000443/0.1246, allocations: 365.1 kB / 472.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.1246, allocations: 11.97 kB / 472.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.1247, allocations: 30.56 kB / 472.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.054e-05/0.1247, allocations: 4 kB / 472.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.1249, allocations: 163.1 kB / 472.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.1249, allocations: 4 kB / 472.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.1249, allocations: 3.953 kB / 472.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.782e-05/0.125, allocations: 25.7 kB / 472.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.125, allocations: 0 / 472.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.1251, allocations: 0 / 472.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1251, allocations: 4 kB / 472.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.326e-05/0.1251, allocations: 3.984 kB / 472.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000208/0.1253, allocations: 149.6 kB / 473 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.832e-05/0.1254, allocations: 22.61 kB / 473 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.1254, allocations: 0 / 473 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.828e-05/0.1255, allocations: 60.22 kB / 473.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1255, allocations: 0 / 473.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002126/0.1257, allocations: 71.39 kB / 473.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.1258, allocations: 77.11 kB / 473.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.439e-05/0.1259, allocations: 93.98 kB / 473.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.1259, allocations: 25.7 kB / 473.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.566e-05/0.1259, allocations: 84.14 kB / 473.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.126, allocations: 0 / 473.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-06/0.126, allocations: 0 / 473.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.1262, allocations: 310.8 kB / 473.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.173e-05/0.1262, allocations: 0 / 473.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.297e-06/0.1262, allocations: 4 kB / 473.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.832e-05/0.1263, allocations: 33.69 kB / 473.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1263, allocations: 4.062 kB / 473.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.456e-05/0.1264, allocations: 59.41 kB / 473.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.868e-05/0.1264, allocations: 29.7 kB / 473.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.1265, allocations: 3.984 kB / 473.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.1265, allocations: 3.953 kB / 473.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.587e-06/0.1265, allocations: 3.938 kB / 473.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.1265, allocations: 4 kB / 473.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.643e-05/0.1266, allocations: 3.984 kB / 473.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.1266, allocations: 0 / 473.9 MB, free: 11.03 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.0001239/0.1267, allocations: 140 kB / 474 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.1267, allocations: 4 kB / 474 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.801e-05/0.1268, allocations: 11.08 kB / 474 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1268, allocations: 3.953 kB / 474 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.1268, allocations: 3.938 kB / 474 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1268, allocations: 0 / 474 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.127, allocations: 153.7 kB / 474.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.127, allocations: 0 / 474.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-07/0.127, allocations: 0 / 474.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.127, allocations: 0 / 474.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.127, allocations: 4 kB / 474.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.127, allocations: 0 / 474.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.127, allocations: 3.953 kB / 474.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001403/0.1272, allocations: 90.83 kB / 474.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.083e-05/0.1272, allocations: 81.3 kB / 474.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.1273, allocations: 3.938 kB / 474.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.593e-05/0.1273, allocations: 4 kB / 474.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.025e-05/0.1273, allocations: 4.031 kB / 474.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.1273, allocations: 7.953 kB / 474.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.437e-05/0.1274, allocations: 75.28 kB / 474.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1274, allocations: 0 / 474.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.1278, allocations: 35.98 kB / 474.5 MB, free: 10.31 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.001118/0.1289, allocations: 0.7936 MB / 475.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.1291, allocations: 75.33 kB / 475.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1291, allocations: 3.938 kB / 475.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.608e-05/0.1291, allocations: 51.41 kB / 475.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001271/0.1293, allocations: 4 kB / 475.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.1297, allocations: 120.4 kB / 475.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.13, allocations: 0.6731 MB / 476.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.883e-06/0.1301, allocations: 0 / 476.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.995e-05/0.1301, allocations: 11.44 kB / 476.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1301, allocations: 0 / 476.2 MB, free: 8.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.1473, allocations: 1.526 MB / 477.7 MB, free: 7.09 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002941/0.1477, allocations: 221.8 kB / 478 MB, free: 6.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/1.897, allocations: 0 / 478 MB, free: 6.844 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat