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/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.0009482/0.0009482, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009377/0.0009377, allocations: 173.9 kB / 24.92 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9794/0.9794, allocations: 177.1 MB / 205.3 MB, free: 5.098 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2609/0.2609, allocations: 32.8 MB / 294.6 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 180] 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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 323.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.516e-05/2.648e-05, allocations: 3.672 kB / 323.2 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0009957/0.001022, allocations: 495.7 kB / 323.7 MB, free: 9.273 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005064/0.001529, allocations: 307 kB / 324 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.639e-05/0.001545, allocations: 0 / 324 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.172e-05/0.001557, allocations: 0 / 324 MB, free: 8.973 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.001563, allocations: 0 / 324 MB, free: 8.973 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006178/0.00218, allocations: 113.9 kB / 324.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.138e-05/0.002222, allocations: 4.562 kB / 324.1 MB, free: 8.867 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.505e-05/0.002257, allocations: 4 kB / 324.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.931e-05/0.002286, allocations: 3.984 kB / 324.1 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.354e-05/0.00231, allocations: 0 / 324.1 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.879e-06/0.00232, allocations: 4 kB / 324.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.002499, allocations: 107.8 kB / 324.2 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-06/0.002506, allocations: 0 / 324.2 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.184e-05/0.002518, allocations: 0 / 324.2 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.002672, allocations: 115.7 kB / 324.3 MB, free: 8.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.002673, allocations: 0 / 324.3 MB, free: 8.637 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.002674, allocations: 0 / 324.3 MB, free: 8.637 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.895e-06/0.002677, allocations: 0 / 324.3 MB, free: 8.637 MB / 298.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.0002411/0.002918, allocations: 262.8 kB / 324.6 MB, free: 8.348 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.865e-05/0.002947, allocations: 8.031 kB / 324.6 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.374e-05/0.002971, allocations: 4.938 kB / 324.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.374e-05/0.003024, allocations: 105.8 kB / 324.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.235e-06/0.003033, allocations: 384 / 324.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.003042, allocations: 4.375 kB / 324.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.247e-05/0.003104, allocations: 63.95 kB / 324.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.00311, allocations: 4.125 kB / 324.8 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-06/0.003115, allocations: 384 / 324.8 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.00312, allocations: 384 / 324.8 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.448e-05/0.003134, allocations: 33.64 kB / 324.8 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.637e-05/0.00319, allocations: 53.05 kB / 324.9 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.772e-05/0.003228, allocations: 44.31 kB / 324.9 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.658e-05/0.003275, allocations: 34.62 kB / 324.9 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-06/0.003277, allocations: 4 kB / 324.9 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.003311, allocations: 60.25 kB / 325 MB, free: 7.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.003312, allocations: 0 / 325 MB, free: 7.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.373e-05/0.003405, allocations: 114.8 kB / 325.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.003439, allocations: 81.11 kB / 325.2 MB, free: 7.605 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.766e-05/0.003466, allocations: 89.86 kB / 325.3 MB, free: 7.508 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.173e-06/0.003473, allocations: 29.64 kB / 325.3 MB, free: 7.473 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.625e-05/0.00349, allocations: 80.14 kB / 325.4 MB, free: 7.391 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.003504, allocations: 5.203 kB / 325.4 MB, free: 7.387 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.794e-05/0.003522, allocations: 21.81 kB / 325.4 MB, free: 7.359 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.639e-05/0.003588, allocations: 314.8 kB / 325.7 MB, free: 7.043 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.317e-05/0.003601, allocations: 29.7 kB / 325.7 MB, free: 7.008 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.194e-05/0.003613, allocations: 25.7 kB / 325.8 MB, free: 6.977 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.879e-05/0.003712, allocations: 64.2 kB / 325.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.003714, allocations: 0 / 325.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.778e-05/0.003762, allocations: 89.08 kB / 325.9 MB, free: 6.793 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.003784, allocations: 33.7 kB / 325.9 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.003788, allocations: 0 / 325.9 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.0038, allocations: 4.094 kB / 326 MB, free: 6.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.899e-06/0.003805, allocations: 4 kB / 326 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.427e-06/0.003808, allocations: 3.984 kB / 326 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.447e-06/0.003818, allocations: 0 / 326 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.003824, allocations: 4 kB / 326 MB, free: 6.738 MB / 298.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 5.111e-05/0.003875, allocations: 143.5 kB / 326.1 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-06/0.00388, allocations: 4 kB / 326.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.354e-06/0.003887, allocations: 3 kB / 326.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.003888, allocations: 0 / 326.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.00389, allocations: 0 / 326.1 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.003892, allocations: 4 kB / 326.1 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.776e-05/0.00393, allocations: 65.84 kB / 326.2 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.61e-07/0.00393, allocations: 3.938 kB / 326.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.00393, allocations: 0 / 326.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.003933, allocations: 3.984 kB / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-06/0.003936, allocations: 0 / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.003937, allocations: 0 / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.003937, allocations: 0 / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.251e-05/0.00399, allocations: 116.5 kB / 326.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.447e-06/0.003993, allocations: 352 / 326.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.346e-06/0.004002, allocations: 0 / 326.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.148e-06/0.004006, allocations: 4.031 kB / 326.3 MB, free: 6.336 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-06/0.004013, allocations: 4 kB / 326.3 MB, free: 6.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-06/0.004015, allocations: 0 / 326.3 MB, free: 6.332 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.529e-06/0.004019, allocations: 8.797 kB / 326.3 MB, free: 6.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004019, allocations: 0 / 326.3 MB, free: 6.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001278/0.004147, allocations: 35.92 kB / 326.4 MB, free: 6.285 MB / 298.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.0005156/0.004663, allocations: 311 kB / 326.7 MB, free: 6.086 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.71e-05/0.00475, allocations: 119.6 kB / 326.8 MB, free: 5.941 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.004753, allocations: 8 kB / 326.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.575e-05/0.004779, allocations: 89.95 kB / 326.9 MB, free: 5.824 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.183e-05/0.004821, allocations: 3.938 kB / 326.9 MB, free: 5.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001391/0.00496, allocations: 104.6 kB / 327 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.704e-05/0.004987, allocations: 59.47 kB / 327 MB, free: 5.605 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.099e-06/0.004992, allocations: 0 / 327 MB, free: 5.605 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.217e-05/0.005024, allocations: 55.38 kB / 327.1 MB, free: 5.551 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.005024, allocations: 0 / 327.1 MB, free: 5.551 MB / 298.7 MB Notification: Performance of Templates: time 0.002546/0.00757, allocations: 1.164 MB / 328.3 MB, free: 4.391 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] 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","",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.851536496076733]