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.0008818/0.0008816, allocations: 97.08 kB / 17 MB, free: 6.418 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.000781/0.0007809, allocations: 188.6 kB / 17.89 MB, free: 5.945 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.335/1.335, allocations: 223.2 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2188/0.2188, allocations: 44.22 MB / 337.2 MB, free: 2.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.0004253, allocations: 12.67 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1514, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006306/0.152, allocations: 210.9 kB / 471.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007643/0.1528, allocations: 281 kB / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.361e-05/0.1528, allocations: 0 / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.498e-06/0.1529, allocations: 0 / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.382e-06/0.1529, allocations: 0 / 472.1 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.0004739/0.1534, allocations: 71.8 kB / 472.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.494e-05/0.1534, allocations: 8 kB / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.092e-05/0.1535, allocations: 0 / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.461e-05/0.1535, allocations: 0 / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.028e-05/0.1535, allocations: 0 / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-06/0.1535, allocations: 0 / 472.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002171/0.1537, allocations: 107.8 kB / 472.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.5e-06/0.1538, allocations: 0 / 472.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.484e-05/0.1538, allocations: 25.7 kB / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.154, allocations: 55.91 kB / 472.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.154, allocations: 0 / 472.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.154, allocations: 0 / 472.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.154, allocations: 0 / 472.4 MB, free: 12.91 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.0003766/0.1544, allocations: 361.1 kB / 472.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.1544, allocations: 8.031 kB / 472.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.1545, allocations: 34.56 kB / 472.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.1545, allocations: 0 / 472.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.1547, allocations: 167.1 kB / 472.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.1547, allocations: 4 kB / 472.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.1547, allocations: 3.953 kB / 472.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.926e-05/0.1548, allocations: 29.69 kB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1549, allocations: 3.938 kB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.1549, allocations: 4 kB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1549, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.1e-05/0.1549, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001746/0.1551, allocations: 149.7 kB / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.667e-05/0.1552, allocations: 18.61 kB / 473.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.2e-05/0.1552, allocations: 8.859 kB / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-06/0.1552, allocations: 0 / 473.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/0.1553, allocations: 64.28 kB / 473.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.313e-06/0.1553, allocations: 0 / 473.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002023/0.1555, allocations: 67.33 kB / 473.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.1556, allocations: 81.11 kB / 473.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.837e-05/0.1556, allocations: 89.86 kB / 473.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.1557, allocations: 25.7 kB / 473.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.314e-05/0.1557, allocations: 84.14 kB / 473.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.858e-05/0.1557, allocations: 0 / 473.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.1558, allocations: 0 / 473.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1559, allocations: 310.8 kB / 473.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.1559, allocations: 4.125 kB / 473.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-06/0.1559, allocations: 7.938 kB / 473.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.332e-05/0.156, allocations: 25.7 kB / 473.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.156, allocations: 3.984 kB / 473.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001038/0.1561, allocations: 63.34 kB / 474 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.1562, allocations: 29.7 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.1562, allocations: 11.89 kB / 474 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1562, allocations: 0 / 474 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.965e-06/0.1562, allocations: 4 kB / 474 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1562, allocations: 0 / 474 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.339e-05/0.1563, allocations: 8.094 kB / 474 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.1563, allocations: 0 / 474 MB, free: 11 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.0001114/0.1564, allocations: 140.1 kB / 474.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.051e-05/0.1564, allocations: 0 / 474.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.46e-05/0.1565, allocations: 7.078 kB / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.1565, allocations: 3.953 kB / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1565, allocations: 0 / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.1565, allocations: 4 kB / 474.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.1566, allocations: 145.7 kB / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1566, allocations: 4 kB / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.1566, allocations: 0 / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1567, allocations: 0 / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.1567, allocations: 0 / 474.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1567, allocations: 4 kB / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1567, allocations: 3.953 kB / 474.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00013/0.1568, allocations: 90.77 kB / 474.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.1569, allocations: 85.3 kB / 474.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.1569, allocations: 4.031 kB / 474.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.27e-05/0.1569, allocations: 0 / 474.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.608e-05/0.157, allocations: 3.953 kB / 474.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.157, allocations: 7.984 kB / 474.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.961e-05/0.157, allocations: 75.28 kB / 474.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.157, allocations: 4 kB / 474.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004065/0.1574, allocations: 31.98 kB / 474.6 MB, free: 10.29 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.001123/0.1586, allocations: 0.8138 MB / 475.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001086/0.1587, allocations: 59.39 kB / 475.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1587, allocations: 0 / 475.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.886e-05/0.1588, allocations: 59.34 kB / 475.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.159, allocations: 6.188 kB / 475.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003937/0.1594, allocations: 120.4 kB / 475.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1597, allocations: 0.6692 MB / 476.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.452e-06/0.1598, allocations: 4.125 kB / 476.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.886e-05/0.1598, allocations: 11.44 kB / 476.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1598, allocations: 0 / 476.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01233/0.1721, allocations: 1.557 MB / 477.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/0.1723, allocations: 221.5 kB / 478.1 MB, free: 6.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.811/1.984, allocations: 3.875 kB / 478.1 MB, free: 6.789 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