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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 173.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 100.4 kB / 281.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1943/0.1943, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.526e-05/1.537e-05, allocations: 224 / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1339, allocations: 61.92 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4005/0.5345, allocations: 85.35 MB / 0.578 GB, free: 11.19 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.5348, allocations: 64.52 kB / 0.5781 GB, free: 11.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005871/0.5406, allocations: 2.293 MB / 0.5803 GB, free: 8.848 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5407, allocations: 0 / 0.5803 GB, free: 8.848 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.5407, allocations: 0 / 0.5803 GB, free: 8.848 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.0002809/0.541, allocations: 364.1 kB / 0.5807 GB, free: 8.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.541, allocations: 19.98 kB / 0.5807 GB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.639e-05/0.5411, allocations: 0 / 0.5807 GB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.975e-05/0.5412, allocations: 159.1 kB / 0.5808 GB, free: 8.227 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.5412, allocations: 0 / 0.5808 GB, free: 8.227 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.5412, allocations: 0 / 0.5808 GB, free: 8.227 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.319e-05/0.5412, allocations: 7.938 kB / 0.5808 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.834e-05/0.5413, allocations: 29.7 kB / 0.5809 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.5413, allocations: 0 / 0.5809 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.5413, allocations: 0 / 0.5809 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.5413, allocations: 4 kB / 0.5809 GB, free: 8.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001214/0.5415, allocations: 126.2 kB / 0.581 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.339e-05/0.5415, allocations: 26.55 kB / 0.581 GB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.611e-05/0.5416, allocations: 4.859 kB / 0.581 GB, free: 7.977 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.655e-06/0.5416, allocations: 0 / 0.581 GB, free: 7.977 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.5416, allocations: 60.25 kB / 0.5811 GB, free: 7.902 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.5416, allocations: 0 / 0.5811 GB, free: 7.902 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001674/0.5418, allocations: 45.7 kB / 0.5811 GB, free: 7.852 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.5419, allocations: 77.11 kB / 0.5812 GB, free: 7.758 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.863e-05/0.5419, allocations: 85 kB / 0.5813 GB, free: 7.668 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.5419, allocations: 29.7 kB / 0.5813 GB, free: 7.633 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.706e-05/0.542, allocations: 80.14 kB / 0.5814 GB, free: 7.551 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.542, allocations: 2.953 kB / 0.5814 GB, free: 7.551 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-06/0.542, allocations: 0 / 0.5814 GB, free: 7.551 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.5421, allocations: 318.8 kB / 0.5817 GB, free: 7.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.932e-05/0.5421, allocations: 4.031 kB / 0.5817 GB, free: 7.227 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.198e-06/0.5421, allocations: 3.938 kB / 0.5817 GB, free: 7.223 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.209e-05/0.5422, allocations: 4 kB / 0.5817 GB, free: 7.219 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.5422, allocations: 0 / 0.5817 GB, free: 7.219 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.748e-05/0.5423, allocations: 37.69 kB / 0.5817 GB, free: 7.176 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.5423, allocations: 30.55 kB / 0.5818 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.5423, allocations: 0 / 0.5818 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.5423, allocations: 0 / 0.5818 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.367e-06/0.5423, allocations: 4 kB / 0.5818 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.5423, allocations: 3.953 kB / 0.5818 GB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.112e-05/0.5424, allocations: 4.094 kB / 0.5818 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.5424, allocations: 0 / 0.5818 GB, free: 7.129 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 7.458e-05/0.5425, allocations: 132.9 kB / 0.5819 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.106e-06/0.5425, allocations: 3.984 kB / 0.5819 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.404e-05/0.5425, allocations: 11.64 kB / 0.5819 GB, free: 6.973 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.5425, allocations: 0 / 0.5819 GB, free: 6.973 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.5425, allocations: 0 / 0.5819 GB, free: 6.973 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.5425, allocations: 3.953 kB / 0.5819 GB, free: 6.969 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.252e-05/0.5426, allocations: 126.2 kB / 0.582 GB, free: 6.809 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.5426, allocations: 8 kB / 0.582 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.5426, allocations: 0 / 0.582 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.5426, allocations: 0 / 0.582 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.5426, allocations: 0 / 0.582 GB, free: 6.801 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.5426, allocations: 7.922 kB / 0.5821 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.5426, allocations: 3.938 kB / 0.5821 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.832e-05/0.5427, allocations: 61.09 kB / 0.5821 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.5428, allocations: 85.09 kB / 0.5822 GB, free: 6.609 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.5428, allocations: 4.031 kB / 0.5822 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.695e-06/0.5428, allocations: 0 / 0.5822 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.544e-05/0.5428, allocations: 4 kB / 0.5822 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.5428, allocations: 0 / 0.5822 GB, free: 6.602 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.473e-05/0.5429, allocations: 75.28 kB / 0.5823 GB, free: 6.527 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5429, allocations: 0 / 0.5823 GB, free: 6.527 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002487/0.5431, allocations: 35.98 kB / 0.5823 GB, free: 6.492 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.0005172/0.5437, allocations: 292.2 kB / 0.5826 GB, free: 6.246 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.376e-05/0.5437, allocations: 55.41 kB / 0.5826 GB, free: 6.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.5438, allocations: 0 / 0.5826 GB, free: 6.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.851e-05/0.5438, allocations: 59.39 kB / 0.5827 GB, free: 6.109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.003e-05/0.5439, allocations: 3.953 kB / 0.5827 GB, free: 6.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001418/0.544, allocations: 46.19 kB / 0.5827 GB, free: 6.039 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.5443, allocations: 0.6729 MB / 0.5834 GB, free: 5.34 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.556e-06/0.5443, allocations: 3.984 kB / 0.5834 GB, free: 5.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.004e-05/0.5443, allocations: 11.56 kB / 0.5834 GB, free: 5.324 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5443, allocations: 0 / 0.5834 GB, free: 5.324 MB / 394.7 MB Notification: Performance of Templates: time 0.00301/0.5473, allocations: 0.9149 MB / 0.5843 GB, free: 4.41 MB / 394.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches