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.001664/0.001664, allocations: 88.23 kB / 20.2 MB, free: 4.227 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.002423/0.002423, allocations: 157.7 kB / 23.51 MB, free: 0.918 MB / 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 1.557/1.557, allocations: 158.6 MB / 185.3 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 178] 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.273/0.273, allocations: 32.37 MB / 270 MB, free: 14.78 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.352e-06/1.352e-06, allocations: 0 / 346.9 MB, free: 9.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.638e-05/2.773e-05, allocations: 2.312 kB / 346.9 MB, free: 9.836 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001287/0.001315, allocations: 0.5035 MB / 347.4 MB, free: 9.336 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006019/0.001917, allocations: 296.9 kB / 347.7 MB, free: 9.047 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.953e-05/0.001936, allocations: 4 kB / 347.7 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.083e-05/0.001947, allocations: 0 / 347.7 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.001952, allocations: 0 / 347.7 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008974/0.002849, allocations: 107.1 kB / 347.8 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.475e-05/0.002894, allocations: 0 / 347.8 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.748e-05/0.002921, allocations: 3.938 kB / 347.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.483e-05/0.002946, allocations: 4 kB / 347.8 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.996e-05/0.002966, allocations: 0 / 347.8 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.654e-06/0.002974, allocations: 0 / 347.8 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.00314, allocations: 107.8 kB / 347.9 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.904e-06/0.003148, allocations: 4 kB / 347.9 MB, free: 8.828 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.561e-05/0.003173, allocations: 4 kB / 347.9 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001791/0.003353, allocations: 107.7 kB / 348 MB, free: 8.719 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.003355, allocations: 0 / 348 MB, free: 8.719 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.003355, allocations: 0 / 348 MB, free: 8.719 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.003359, allocations: 0 / 348 MB, free: 8.719 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.0002449/0.003604, allocations: 287.9 kB / 348.3 MB, free: 8.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.003636, allocations: 12.03 kB / 348.3 MB, free: 8.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.027e-05/0.003676, allocations: 0.9375 kB / 348.3 MB, free: 8.387 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.764e-05/0.003724, allocations: 101.8 kB / 348.4 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.003736, allocations: 384 / 348.4 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.003745, allocations: 4.375 kB / 348.4 MB, free: 8.258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.515e-05/0.00382, allocations: 63.89 kB / 348.5 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.003828, allocations: 192 / 348.5 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-06/0.003836, allocations: 4.375 kB / 348.5 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.003839, allocations: 384 / 348.5 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.102e-05/0.00386, allocations: 29.64 kB / 348.5 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.273e-05/0.003933, allocations: 105.3 kB / 348.6 MB, free: 8.012 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.541e-05/0.003979, allocations: 40.28 kB / 348.7 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.766e-05/0.003996, allocations: 34.66 kB / 348.7 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.032e-05/0.004007, allocations: 0 / 348.7 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.00404, allocations: 64.19 kB / 348.8 MB, free: 7.836 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.004041, allocations: 4 kB / 348.8 MB, free: 7.832 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001722/0.004213, allocations: 114.8 kB / 348.9 MB, free: 7.695 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.004236, allocations: 81.11 kB / 349 MB, free: 7.598 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.867e-05/0.004255, allocations: 93.84 kB / 349 MB, free: 7.496 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.172e-06/0.004261, allocations: 25.7 kB / 349.1 MB, free: 7.465 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-06/0.004271, allocations: 80.14 kB / 349.1 MB, free: 7.383 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/0.004284, allocations: 0 / 349.1 MB, free: 7.383 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-05/0.004306, allocations: 17.72 kB / 349.2 MB, free: 7.359 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.335e-05/0.00435, allocations: 314.8 kB / 349.5 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.319e-05/0.004363, allocations: 25.7 kB / 349.5 MB, free: 7.012 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.042e-05/0.004373, allocations: 37.77 kB / 349.5 MB, free: 6.969 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.581e-05/0.004409, allocations: 60.27 kB / 349.6 MB, free: 6.895 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.004411, allocations: 0 / 349.6 MB, free: 6.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.124e-05/0.004462, allocations: 93.09 kB / 349.7 MB, free: 6.785 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.004483, allocations: 29.7 kB / 349.7 MB, free: 6.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.004487, allocations: 3.938 kB / 349.7 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.004504, allocations: 0 / 349.7 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.004505, allocations: 0 / 349.7 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.477e-06/0.004508, allocations: 0 / 349.7 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.004523, allocations: 16.02 kB / 349.7 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-06/0.004528, allocations: 0 / 349.7 MB, free: 6.73 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 4.091e-05/0.004569, allocations: 135.5 kB / 349.9 MB, free: 6.582 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-06/0.004577, allocations: 7.938 kB / 349.9 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.225e-06/0.004586, allocations: 3 kB / 349.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.004587, allocations: 0 / 349.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.00459, allocations: 0 / 349.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.004592, allocations: 0 / 349.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.026e-05/0.004632, allocations: 113.2 kB / 350 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.004634, allocations: 7.984 kB / 350 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.004635, allocations: 0 / 350 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.004636, allocations: 4 kB / 350 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.004642, allocations: 0 / 350 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.004643, allocations: 0 / 350 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.004644, allocations: 4 kB / 350 MB, free: 6.414 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.292e-05/0.004717, allocations: 124.4 kB / 350.1 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.407e-06/0.004721, allocations: 0 / 350.1 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.004731, allocations: 0 / 350.1 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.518e-06/0.004741, allocations: 4 kB / 350.1 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.673e-05/0.004757, allocations: 0 / 350.1 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.00476, allocations: 0 / 350.1 MB, free: 6.258 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.14e-05/0.004771, allocations: 83.25 kB / 350.2 MB, free: 6.176 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004771, allocations: 0 / 350.2 MB, free: 6.176 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002377/0.005009, allocations: 35.92 kB / 350.2 MB, free: 6.141 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.0006528/0.005662, allocations: 294.8 kB / 350.5 MB, free: 5.918 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.917e-05/0.005741, allocations: 118.8 kB / 350.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.005742, allocations: 0 / 350.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.147e-05/0.005764, allocations: 85.17 kB / 350.7 MB, free: 5.676 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.005889, allocations: 0 / 350.7 MB, free: 5.676 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001645/0.006054, allocations: 104 kB / 350.8 MB, free: 5.539 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.495e-05/0.006079, allocations: 55.36 kB / 350.9 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.859e-06/0.006084, allocations: 0 / 350.9 MB, free: 5.465 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.105e-05/0.006095, allocations: 8.5 kB / 350.9 MB, free: 5.457 MB / 282.7 MB Notification: Performance of SimCode: time 4.11e-07/0.006095, allocations: 0 / 350.9 MB, free: 5.457 MB / 282.7 MB Notification: Performance of Templates: time 0.003477/0.009572, allocations: 1.027 MB / 351.9 MB, free: 4.43 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.885129967005923]