Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001537/0.001537, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.919/1.919, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001095/0.001094, allocations: 99.33 kB / 270.9 MB, free: 8.371 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.4997/0.4997, allocations: 43.55 MB / 362.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004747/0.0004747, allocations: 11.98 kB / 431.4 MB, free: 5.961 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1241, allocations: 58.84 MB / 490.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4478/0.572, allocations: 84.95 MB / 0.5617 GB, free: 1.641 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.5722, allocations: 63.97 kB / 0.5617 GB, free: 1.578 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008649/0.5809, allocations: 2.294 MB / 0.564 GB, free: 15.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5809, allocations: 0 / 0.564 GB, free: 15.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.581, allocations: 4 kB / 0.564 GB, free: 15.3 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.0003404/0.5813, allocations: 361.1 kB / 0.5643 GB, free: 14.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.5814, allocations: 13.11 kB / 0.5643 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.057e-05/0.5814, allocations: 2.625 kB / 0.5643 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.751e-05/0.5815, allocations: 162.5 kB / 0.5645 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.5815, allocations: 6.688 kB / 0.5645 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.5816, allocations: 0 / 0.5645 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.619e-05/0.5816, allocations: 30.25 kB / 0.5645 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.5817, allocations: 0 / 0.5645 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.5817, allocations: 0 / 0.5645 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.5817, allocations: 3.656 kB / 0.5645 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.243e-05/0.5817, allocations: 1.031 kB / 0.5645 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001386/0.5819, allocations: 161.6 kB / 0.5647 GB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.57e-05/0.5819, allocations: 22.52 kB / 0.5647 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-06/0.582, allocations: 0 / 0.5647 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/0.582, allocations: 60.36 kB / 0.5648 GB, free: 14.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.463e-06/0.582, allocations: 0 / 0.5648 GB, free: 14.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.5822, allocations: 59.39 kB / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.5823, allocations: 85.23 kB / 0.5649 GB, free: 14.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.96e-05/0.5823, allocations: 89.62 kB / 0.565 GB, free: 14.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.5824, allocations: 25.7 kB / 0.565 GB, free: 14.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.344e-05/0.5824, allocations: 150.6 kB / 0.5652 GB, free: 13.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.5824, allocations: 0.9375 kB / 0.5652 GB, free: 13.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-06/0.5825, allocations: 0 / 0.5652 GB, free: 13.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.5826, allocations: 310.8 kB / 0.5655 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.43e-05/0.5826, allocations: 7.938 kB / 0.5655 GB, free: 13.57 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-06/0.5826, allocations: 0 / 0.5655 GB, free: 13.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.015e-05/0.5827, allocations: 29.77 kB / 0.5655 GB, free: 13.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5827, allocations: 0 / 0.5655 GB, free: 13.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.309e-05/0.5828, allocations: 71.34 kB / 0.5656 GB, free: 13.45 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.5828, allocations: 32.67 kB / 0.5656 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.5828, allocations: 4 kB / 0.5656 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.5829, allocations: 0 / 0.5656 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.5829, allocations: 0 / 0.5656 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.5829, allocations: 2.266 kB / 0.5656 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.906e-05/0.5829, allocations: 0 / 0.5656 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.944e-06/0.5829, allocations: 4.031 kB / 0.5656 GB, free: 13.41 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 () * 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 9.841e-05/0.583, allocations: 143.5 kB / 0.5657 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.249e-05/0.5831, allocations: 6.578 kB / 0.5657 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.386e-05/0.5831, allocations: 3.125 kB / 0.5657 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.5831, allocations: 0 / 0.5657 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.5831, allocations: 0 / 0.5657 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.5831, allocations: 4 kB / 0.5658 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.5832, allocations: 149.7 kB / 0.5659 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5833, allocations: 7.922 kB / 0.5659 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.5833, allocations: 4 kB / 0.5659 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.5833, allocations: 3.953 kB / 0.5659 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.5833, allocations: 0 / 0.5659 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.5833, allocations: 7.938 kB / 0.5659 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5833, allocations: 0.75 kB / 0.5659 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.5835, allocations: 86.83 kB / 0.566 GB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.062e-05/0.5835, allocations: 79.14 kB / 0.5661 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.5835, allocations: 7.953 kB / 0.5661 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.352e-05/0.5836, allocations: 8.031 kB / 0.5661 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.5836, allocations: 0 / 0.5661 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.5836, allocations: 0 / 0.5661 GB, free: 12.81 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.092e-05/0.5836, allocations: 75.28 kB / 0.5662 GB, free: 12.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5836, allocations: 3.938 kB / 0.5662 GB, free: 12.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003802/0.584, allocations: 39.98 kB / 0.5662 GB, free: 12.69 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) * 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.0006796/0.5847, allocations: 271.5 kB / 0.5665 GB, free: 12.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001113/0.5849, allocations: 59.39 kB / 0.5665 GB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5849, allocations: 7.938 kB / 0.5665 GB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.495e-05/0.5849, allocations: 51.41 kB / 0.5666 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.807e-05/0.585, allocations: 7.438 kB / 0.5666 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001976/0.5852, allocations: 104.7 kB / 0.5667 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.5855, allocations: 0.677 MB / 0.5673 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.307e-05/0.5855, allocations: 11.56 kB / 0.5674 GB, free: 11.5 MB / 394.7 MB Notification: Performance of SimCode: time 8.51e-07/0.5855, allocations: 0 / 0.5674 GB, free: 11.5 MB / 394.7 MB Notification: Performance of Templates: time 0.003839/0.5894, allocations: 1.202 MB / 0.5685 GB, free: 10.3 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches