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/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 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 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 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_3.2.3_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001005, allocations: 103.3 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 185.8 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.743/1.743, allocations: 205.4 MB / 223.1 MB, free: 5.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4336/0.4336, allocations: 43.58 MB / 315 MB, free: 8.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006223/0.0006226, allocations: 12.47 kB / 384.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1393, allocations: 58.87 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0008215/0.1402, allocations: 224.4 kB / 443.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009089/0.1411, allocations: 294.6 kB / 443.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.122e-05/0.1412, allocations: 0 / 443.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.526e-05/0.1412, allocations: 0 / 443.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.1412, allocations: 0 / 443.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009929/0.1422, allocations: 87.22 kB / 444 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.55e-05/0.1423, allocations: 0 / 444 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.642e-05/0.1423, allocations: 0 / 444 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.76e-05/0.1423, allocations: 0 / 444 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.969e-05/0.1424, allocations: 4 kB / 444 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.388e-06/0.1424, allocations: 0 / 444 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000258/0.1427, allocations: 99.91 kB / 444.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.103e-05/0.1427, allocations: 7.984 kB / 444.1 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.1427, allocations: 29.64 kB / 444.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.1429, allocations: 83.86 kB / 444.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.143, allocations: 0 / 444.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.143, allocations: 0 / 444.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.143, allocations: 0 / 444.2 MB, free: 12.12 MB / 382.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.0004531/0.1434, allocations: 357.3 kB / 444.6 MB, free: 11.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.1435, allocations: 15.97 kB / 444.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.511e-05/0.1436, allocations: 0.9375 kB / 444.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.1437, allocations: 168.3 kB / 444.8 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.1437, allocations: 4.375 kB / 444.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.1437, allocations: 4.312 kB / 444.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.1439, allocations: 30.27 kB / 444.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.1439, allocations: 192 / 444.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.1439, allocations: 7.938 kB / 444.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1439, allocations: 0 / 444.8 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.66e-05/0.1439, allocations: 7.984 kB / 444.8 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001743/0.1441, allocations: 145.7 kB / 445 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.938e-05/0.1442, allocations: 18.58 kB / 445 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.084e-05/0.1442, allocations: 12.89 kB / 445 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.1442, allocations: 0 / 445 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.176e-05/0.1443, allocations: 56.27 kB / 445.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1443, allocations: 0 / 445.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002583/0.1445, allocations: 75.23 kB / 445.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/0.1446, allocations: 77.11 kB / 445.2 MB, free: 10.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.643e-05/0.1447, allocations: 93.98 kB / 445.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.1447, allocations: 29.7 kB / 445.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.42e-05/0.1447, allocations: 80.14 kB / 445.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.1448, allocations: 0 / 445.4 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-05/0.1448, allocations: 9.719 kB / 445.4 MB, free: 10.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.145, allocations: 310.8 kB / 445.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.383e-05/0.145, allocations: 11.92 kB / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.266e-06/0.145, allocations: 4 kB / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.091e-05/0.1451, allocations: 60.33 kB / 445.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1451, allocations: 4 kB / 445.8 MB, free: 10.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.3e-05/0.1451, allocations: 55.41 kB / 445.8 MB, free: 10.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.1452, allocations: 37.69 kB / 445.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1452, allocations: 0 / 445.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1452, allocations: 3.938 kB / 445.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.1452, allocations: 0 / 445.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1452, allocations: 0 / 445.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.648e-05/0.1453, allocations: 0 / 445.9 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.1453, allocations: 0 / 445.9 MB, free: 10.2 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.1454, allocations: 147.5 kB / 446 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-06/0.1454, allocations: 0 / 446 MB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.566e-05/0.1454, allocations: 11 kB / 446 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1454, allocations: 0 / 446 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1455, allocations: 4 kB / 446 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.1455, allocations: 0 / 446 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.1456, allocations: 149.9 kB / 446.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1456, allocations: 0 / 446.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.1456, allocations: 0 / 446.2 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.1456, allocations: 4 kB / 446.2 MB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.1456, allocations: 7.938 kB / 446.2 MB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1456, allocations: 0 / 446.2 MB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.1456, allocations: 0 / 446.2 MB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.1458, allocations: 94.81 kB / 446.3 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.573e-05/0.1458, allocations: 77.11 kB / 446.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.1459, allocations: 3.938 kB / 446.4 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.029e-05/0.1459, allocations: 0 / 446.4 MB, free: 9.602 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.807e-05/0.1459, allocations: 8.016 kB / 446.4 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.1459, allocations: 4 kB / 446.4 MB, free: 9.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.849e-05/0.146, allocations: 79.22 kB / 446.5 MB, free: 9.512 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.146, allocations: 0 / 446.5 MB, free: 9.512 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000268/0.1462, allocations: 32 kB / 446.5 MB, free: 9.48 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005626/0.1468, allocations: 283.9 kB / 446.8 MB, free: 9.215 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001099/0.1469, allocations: 59.41 kB / 446.8 MB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1469, allocations: 0 / 446.8 MB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.005e-05/0.147, allocations: 55.41 kB / 446.9 MB, free: 9.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.1471, allocations: 3.938 kB / 446.9 MB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002201/0.1473, allocations: 82.75 kB / 447 MB, free: 8.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.1476, allocations: 0.6692 MB / 447.6 MB, free: 8.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.991e-06/0.1476, allocations: 0 / 447.6 MB, free: 8.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.232e-05/0.1477, allocations: 11.56 kB / 447.7 MB, free: 8.258 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1477, allocations: 4 kB / 447.7 MB, free: 8.254 MB / 382.1 MB Notification: Performance of Templates: time 0.003852/0.1515, allocations: 0.9686 MB / 448.6 MB, free: 7.285 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches