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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 99.03 kB / 17 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.001862/0.001863, allocations: 177.7 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.56/1.56, allocations: 223.3 MB / 241.9 MB, free: 292 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.2193/0.2193, allocations: 44.25 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003186, allocations: 13.19 kB / 409.7 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1455, allocations: 61.93 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.000732/0.1463, allocations: 201.2 kB / 471.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007153/0.147, allocations: 278.7 kB / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.669e-05/0.147, allocations: 0 / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.122e-05/0.147, allocations: 0 / 472.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.742e-06/0.1471, allocations: 4 kB / 472.1 MB, free: 13.21 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.0005206/0.1476, allocations: 79.8 kB / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.074e-05/0.1476, allocations: 0 / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.093e-05/0.1477, allocations: 3.984 kB / 472.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.144e-05/0.1477, allocations: 0 / 472.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.125e-05/0.1478, allocations: 3.984 kB / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.164e-06/0.1478, allocations: 0 / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002207/0.148, allocations: 95.91 kB / 472.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.304e-06/0.148, allocations: 0 / 472.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.1481, allocations: 29.7 kB / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.1482, allocations: 51.91 kB / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.1482, allocations: 4 kB / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.1482, allocations: 7.938 kB / 472.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1482, allocations: 0 / 472.3 MB, free: 12.94 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.0004327/0.1487, allocations: 355.4 kB / 472.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.1487, allocations: 8.031 kB / 472.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.1488, allocations: 7.984 kB / 472.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.1489, allocations: 163 kB / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.149, allocations: 7.938 kB / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.149, allocations: 0 / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.385e-05/0.1491, allocations: 33.66 kB / 472.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.1491, allocations: 4 kB / 472.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.1491, allocations: 0 / 472.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.1491, allocations: 3.984 kB / 472.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.935e-05/0.1491, allocations: 0 / 472.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001672/0.1493, allocations: 145.7 kB / 473 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.319e-05/0.1494, allocations: 26.55 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.57e-05/0.1494, allocations: 4.859 kB / 473.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.987e-06/0.1494, allocations: 4 kB / 473.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.134e-05/0.1495, allocations: 64.28 kB / 473.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1495, allocations: 0 / 473.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002032/0.1497, allocations: 63.39 kB / 473.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.1498, allocations: 77.11 kB / 473.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.906e-05/0.1498, allocations: 97.8 kB / 473.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.1498, allocations: 25.7 kB / 473.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.047e-05/0.1499, allocations: 84.27 kB / 473.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.1499, allocations: 0 / 473.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/0.1499, allocations: 3.938 kB / 473.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.15, allocations: 310.8 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.396e-06/0.1501, allocations: 4 kB / 473.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.057e-06/0.1501, allocations: 0 / 473.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.916e-05/0.1501, allocations: 29.69 kB / 473.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.1501, allocations: 0 / 473.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.694e-05/0.1502, allocations: 63.47 kB / 473.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/0.1502, allocations: 37.7 kB / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.279e-06/0.1503, allocations: 0 / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1503, allocations: 3.953 kB / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.1503, allocations: 0 / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.1503, allocations: 0 / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.624e-05/0.1503, allocations: 0 / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.1503, allocations: 0 / 473.9 MB, free: 11.09 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.0001078/0.1504, allocations: 144 kB / 474.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-06/0.1504, allocations: 0 / 474.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.214e-05/0.1505, allocations: 11.11 kB / 474.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1505, allocations: 3.953 kB / 474.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1505, allocations: 4 kB / 474.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.1505, allocations: 0 / 474.1 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.449e-05/0.1506, allocations: 145.7 kB / 474.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1506, allocations: 0 / 474.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.1506, allocations: 0 / 474.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1506, allocations: 7.938 kB / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.1506, allocations: 4 kB / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1506, allocations: 0 / 474.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1507, allocations: 7.953 kB / 474.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.293e-05/0.1508, allocations: 86.83 kB / 474.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.633e-05/0.1508, allocations: 81.11 kB / 474.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.1508, allocations: 0 / 474.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.189e-05/0.1508, allocations: 4 kB / 474.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.1508, allocations: 0 / 474.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.1509, allocations: 3.953 kB / 474.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.693e-05/0.1509, allocations: 87.25 kB / 474.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1509, allocations: 0 / 474.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.1512, allocations: 35.92 kB / 474.5 MB, free: 10.36 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.000547/0.1517, allocations: 276.5 kB / 474.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.036e-05/0.1518, allocations: 59.39 kB / 474.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1518, allocations: 0 / 474.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.495e-05/0.1519, allocations: 55.41 kB / 474.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.152, allocations: 4 kB / 474.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001871/0.1522, allocations: 82.66 kB / 475 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.1525, allocations: 0.6733 MB / 475.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.645e-06/0.1525, allocations: 4 kB / 475.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.348e-06/0.1525, allocations: 7.438 kB / 475.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1525, allocations: 0 / 475.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of Templates: time 0.004428/0.157, allocations: 0.9211 MB / 476.6 MB, free: 8.266 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches