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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 80.2 kB / 20.65 MB, free: 3.836 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 173 kB / 24.05 MB, free: 452 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9935/0.9935, allocations: 158.6 MB / 185.9 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1323/0.1323, allocations: 32.38 MB / 270.7 MB, free: 14.54 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 348.1 MB, free: 9.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/1.947e-05, allocations: 6.25 kB / 348.1 MB, free: 9.195 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0008661/0.0008856, allocations: 0.4966 MB / 348.6 MB, free: 8.703 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004746/0.00136, allocations: 299.1 kB / 348.9 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.08e-05/0.001381, allocations: 3.938 kB / 348.9 MB, free: 8.406 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.371e-05/0.001395, allocations: 0 / 348.9 MB, free: 8.406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.0014, allocations: 0 / 348.9 MB, free: 8.406 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005864/0.001987, allocations: 109.2 kB / 349 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 3.844e-05/0.002025, allocations: 0 / 349 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.52e-05/0.00205, allocations: 3.984 kB / 349 MB, free: 8.305 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.341e-05/0.002074, allocations: 8 kB / 349 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.677e-05/0.00209, allocations: 0 / 349 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-06/0.002097, allocations: 0 / 349 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.002225, allocations: 111.8 kB / 349.1 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.304e-06/0.002232, allocations: 0 / 349.1 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.068e-05/0.002243, allocations: 0 / 349.1 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.002381, allocations: 103.7 kB / 349.2 MB, free: 8.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.002383, allocations: 0 / 349.2 MB, free: 8.086 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.002384, allocations: 0 / 349.2 MB, free: 8.086 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.896e-06/0.002386, allocations: 0 / 349.2 MB, free: 8.086 MB / 282.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.0001825/0.002569, allocations: 385.9 kB / 349.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.002604, allocations: 20.02 kB / 349.6 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.23e-05/0.002627, allocations: 0.9375 kB / 349.6 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.564e-05/0.002662, allocations: 112.5 kB / 349.7 MB, free: 7.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.002671, allocations: 4.375 kB / 349.7 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.539e-06/0.002676, allocations: 384 / 349.7 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.239e-05/0.002728, allocations: 55.97 kB / 349.8 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.002734, allocations: 192 / 349.8 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-06/0.002739, allocations: 384 / 349.8 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.002744, allocations: 384 / 349.8 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.508e-06/0.002754, allocations: 29.64 kB / 349.8 MB, free: 7.402 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.288e-05/0.002817, allocations: 105.2 kB / 349.9 MB, free: 7.273 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.802e-05/0.002845, allocations: 60.64 kB / 350 MB, free: 7.195 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.022e-05/0.002855, allocations: 37.48 kB / 350 MB, free: 7.148 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-06/0.002859, allocations: 3.984 kB / 350 MB, free: 7.145 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.002881, allocations: 59.09 kB / 350.1 MB, free: 7.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.002881, allocations: 0 / 350.1 MB, free: 7.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001119/0.002993, allocations: 122.8 kB / 350.2 MB, free: 6.926 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.939e-05/0.003013, allocations: 77.11 kB / 350.3 MB, free: 6.832 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.207e-05/0.003035, allocations: 146.2 kB / 350.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.979e-06/0.00304, allocations: 25.7 kB / 350.4 MB, free: 6.645 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.119e-05/0.003051, allocations: 134.9 kB / 350.6 MB, free: 6.508 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.337e-05/0.003064, allocations: 0 / 350.6 MB, free: 6.508 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.697e-05/0.003081, allocations: 19.38 kB / 350.6 MB, free: 6.48 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.629e-05/0.003127, allocations: 0.4883 MB / 351.1 MB, free: 5.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-06/0.003135, allocations: 29.7 kB / 351.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.193e-06/0.003143, allocations: 29.7 kB / 351.1 MB, free: 5.91 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.516e-05/0.003168, allocations: 63.09 kB / 351.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.003169, allocations: 0 / 351.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.292e-05/0.003202, allocations: 89.09 kB / 351.3 MB, free: 5.727 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.003222, allocations: 37.8 kB / 351.3 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.003226, allocations: 0 / 351.3 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.003237, allocations: 0 / 351.3 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/0.003239, allocations: 3.938 kB / 351.3 MB, free: 5.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.075e-06/0.003242, allocations: 0 / 351.3 MB, free: 5.68 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.937e-06/0.003251, allocations: 4.344 kB / 351.3 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.003256, allocations: 0 / 351.3 MB, free: 5.676 MB / 282.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.806e-05/0.003294, allocations: 182.2 kB / 351.5 MB, free: 5.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-06/0.003298, allocations: 4 kB / 351.5 MB, free: 5.477 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.109e-05/0.003309, allocations: 6.984 kB / 351.5 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.42e-07/0.00331, allocations: 0 / 351.5 MB, free: 5.469 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-06/0.003312, allocations: 4 kB / 351.5 MB, free: 5.465 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.003316, allocations: 0 / 351.5 MB, free: 5.465 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.461e-05/0.003351, allocations: 101.2 kB / 351.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.51e-07/0.003351, allocations: 0 / 351.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.003351, allocations: 0 / 351.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.61e-07/0.003352, allocations: 0 / 351.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-06/0.003356, allocations: 0 / 351.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.1e-07/0.003356, allocations: 3.938 kB / 351.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.21e-07/0.003356, allocations: 4 kB / 351.6 MB, free: 5.332 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.673e-05/0.003403, allocations: 143.7 kB / 351.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-06/0.003407, allocations: 4.031 kB / 351.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.135e-06/0.003415, allocations: 0 / 351.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.26e-06/0.00342, allocations: 7.984 kB / 351.8 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.314e-06/0.003427, allocations: 0 / 351.8 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-06/0.003429, allocations: 0 / 351.8 MB, free: 5.145 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.178e-05/0.00344, allocations: 119.2 kB / 351.9 MB, free: 5.027 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00344, allocations: 0 / 351.9 MB, free: 5.027 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001447/0.003585, allocations: 31.94 kB / 351.9 MB, free: 4.996 MB / 282.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 (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.0003811/0.003966, allocations: 301.5 kB / 352.2 MB, free: 4.766 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.543e-05/0.004032, allocations: 118.5 kB / 352.3 MB, free: 4.621 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.004033, allocations: 0 / 352.3 MB, free: 4.621 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.36e-05/0.004047, allocations: 88.8 kB / 352.4 MB, free: 4.512 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.399e-05/0.004131, allocations: 11.88 kB / 352.4 MB, free: 4.5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001266/0.004257, allocations: 113.6 kB / 352.6 MB, free: 4.352 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.934e-05/0.004277, allocations: 59.34 kB / 352.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.65e-06/0.004282, allocations: 128 / 352.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.784e-05/0.00431, allocations: 74.2 kB / 352.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of SimCode: time 3.5e-07/0.00431, allocations: 0 / 352.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of Templates: time 0.002301/0.006611, allocations: 1.156 MB / 353.8 MB, free: 3.043 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.974271430168301]