Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001494, allocations: 185.8 kB / 13.2 MB, free: 2.117 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.751/1.751, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009204/0.0009203, allocations: 88.47 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4188/0.4188, allocations: 43.48 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.657e-05/3.675e-05, allocations: 4 kB / 425.4 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1495, allocations: 58.84 MB / 484.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4757/0.6252, allocations: 84.86 MB / 0.5558 GB, free: 18.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.6255, allocations: 61.58 kB / 0.5558 GB, free: 18.44 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005697/0.6312, allocations: 2.294 MB / 0.5581 GB, free: 17.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6312, allocations: 0 / 0.5581 GB, free: 17.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.6312, allocations: 0 / 0.5581 GB, free: 17.05 MB / 394.7 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.0002421/0.6315, allocations: 364.9 kB / 0.5584 GB, free: 16.64 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.6315, allocations: 8.031 kB / 0.5584 GB, free: 16.64 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.948e-05/0.6316, allocations: 38.31 kB / 0.5585 GB, free: 16.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.498e-05/0.6316, allocations: 5.406 kB / 0.5585 GB, free: 16.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.06e-05/0.6317, allocations: 160.5 kB / 0.5586 GB, free: 16.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.6317, allocations: 0.7812 kB / 0.5586 GB, free: 16.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.6317, allocations: 0 / 0.5586 GB, free: 16.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.767e-05/0.6318, allocations: 33.47 kB / 0.5586 GB, free: 16.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.6318, allocations: 0 / 0.5586 GB, free: 16.36 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.6319, allocations: 0 / 0.5586 GB, free: 16.36 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.138e-06/0.6319, allocations: 5.359 kB / 0.5587 GB, free: 16.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.34e-05/0.6319, allocations: 3.938 kB / 0.5587 GB, free: 16.36 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001365/0.632, allocations: 158.4 kB / 0.5588 GB, free: 16.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.499e-05/0.6321, allocations: 14.58 kB / 0.5588 GB, free: 16.13 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.6321, allocations: 10.64 kB / 0.5588 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.6321, allocations: 0 / 0.5588 GB, free: 16.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.6322, allocations: 56.27 kB / 0.5589 GB, free: 16.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.6322, allocations: 0 / 0.5589 GB, free: 16.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001684/0.6324, allocations: 68.2 kB / 0.559 GB, free: 15.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.6324, allocations: 82.86 kB / 0.559 GB, free: 15.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.74e-05/0.6325, allocations: 85 kB / 0.5591 GB, free: 15.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.457e-06/0.6325, allocations: 25.7 kB / 0.5591 GB, free: 15.76 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.582e-05/0.6325, allocations: 80.14 kB / 0.5592 GB, free: 15.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.6325, allocations: 0.7812 kB / 0.5592 GB, free: 15.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-06/0.6325, allocations: 3.281 kB / 0.5592 GB, free: 15.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.6326, allocations: 316.3 kB / 0.5595 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-06/0.6326, allocations: 0 / 0.5595 GB, free: 15.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.961e-06/0.6326, allocations: 7.438 kB / 0.5595 GB, free: 15.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.74e-05/0.6327, allocations: 29.7 kB / 0.5596 GB, free: 15.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.6327, allocations: 3.953 kB / 0.5596 GB, free: 15.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.395e-05/0.6327, allocations: 63.09 kB / 0.5596 GB, free: 15.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.6328, allocations: 35.11 kB / 0.5597 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.6328, allocations: 0 / 0.5597 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.6328, allocations: 0 / 0.5597 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.6328, allocations: 0 / 0.5597 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.6328, allocations: 1.734 kB / 0.5597 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.183e-05/0.6328, allocations: 4.094 kB / 0.5597 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.6328, allocations: 4 kB / 0.5597 GB, free: 15.2 MB / 394.7 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 () * 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 5.713e-05/0.6329, allocations: 126.7 kB / 0.5598 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-06/0.6329, allocations: 3.953 kB / 0.5598 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.334e-05/0.6329, allocations: 7.594 kB / 0.5598 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.01e-07/0.6329, allocations: 4 kB / 0.5598 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.633, allocations: 0 / 0.5598 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.633, allocations: 1.406 kB / 0.5598 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.838e-05/0.633, allocations: 145 kB / 0.5599 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.633, allocations: 4 kB / 0.5599 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.804e-06/0.6331, allocations: 3.953 kB / 0.5599 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-06/0.6331, allocations: 0 / 0.5599 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-06/0.6331, allocations: 4 kB / 0.5599 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.6331, allocations: 1.641 kB / 0.5599 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.6331, allocations: 0 / 0.5599 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.747e-05/0.6332, allocations: 91.75 kB / 0.56 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.24e-05/0.6332, allocations: 78.94 kB / 0.5601 GB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.6332, allocations: 7.984 kB / 0.5601 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-06/0.6332, allocations: 5.344 kB / 0.5601 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.6333, allocations: 0 / 0.5601 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-06/0.6333, allocations: 6.562 kB / 0.5601 GB, free: 14.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 1.759e-05/0.6333, allocations: 75.28 kB / 0.5602 GB, free: 14.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6333, allocations: 0 / 0.5602 GB, free: 14.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002706/0.6336, allocations: 40.92 kB / 0.5602 GB, free: 14.53 MB / 394.7 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) * 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.0007028/0.6343, allocations: 0.7878 MB / 0.561 GB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.97e-05/0.6344, allocations: 60.77 kB / 0.5611 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.6344, allocations: 0 / 0.5611 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.617e-05/0.6344, allocations: 58.78 kB / 0.5611 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.763e-05/0.6345, allocations: 8.078 kB / 0.5611 GB, free: 13.65 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002781/0.6348, allocations: 109 kB / 0.5612 GB, free: 13.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.635, allocations: 0.6717 MB / 0.5619 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.143e-06/0.635, allocations: 4 kB / 0.5619 GB, free: 12.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.475e-05/0.635, allocations: 7.438 kB / 0.5619 GB, free: 12.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.635, allocations: 0 / 0.5619 GB, free: 12.8 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01284/0.6479, allocations: 1.533 MB / 0.5634 GB, free: 11.85 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/0.6481, allocations: 180.5 kB / 0.5636 GB, free: 11.62 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.508/2.156, allocations: 4 kB / 0.5636 GB, free: 11.62 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat