Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001209/0.001209, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001283/0.001283, allocations: 168.1 kB / 24.82 MB, free: 9.262 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.9903/0.9903, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3823/0.3823, allocations: 34.26 MB / 296.1 MB, free: 0.7305 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.785e-06/2.785e-06, allocations: 0 / 378.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.782e-05/4.061e-05, allocations: 5.406 kB / 378.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001528/0.001569, allocations: 493 kB / 379 MB, free: 1.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00067/0.002239, allocations: 303.2 kB / 379.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.704e-05/0.002266, allocations: 0 / 379.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.746e-05/0.002283, allocations: 3.938 kB / 379.3 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.294e-06/0.002291, allocations: 0 / 379.3 MB, free: 1.637 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:221:3-287: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.000931/0.003222, allocations: 115.3 kB / 379.4 MB, free: 1.535 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.834e-05/0.00328, allocations: 3.984 kB / 379.4 MB, free: 1.531 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.888e-05/0.003319, allocations: 4 kB / 379.4 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.497e-05/0.003354, allocations: 0 / 379.4 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.131e-05/0.003375, allocations: 0 / 379.4 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.788e-06/0.003385, allocations: 0 / 379.4 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002183/0.003603, allocations: 115.8 kB / 379.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-06/0.003612, allocations: 0 / 379.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.598e-05/0.003628, allocations: 0 / 379.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002155/0.003844, allocations: 111.7 kB / 379.6 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.003847, allocations: 0 / 379.6 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.003848, allocations: 4 kB / 379.6 MB, free: 1.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.003854, allocations: 0 / 379.6 MB, free: 1.301 MB / 346.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.0003678/0.004222, allocations: 389.9 kB / 380 MB, free: 0.875 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.004271, allocations: 8.031 kB / 380 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.004311, allocations: 4.938 kB / 380 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.642e-05/0.004387, allocations: 108.6 kB / 380.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.0044, allocations: 384 / 380.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.004413, allocations: 384 / 380.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.004519, allocations: 59.97 kB / 380.2 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.004531, allocations: 192 / 380.2 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.004541, allocations: 4.375 kB / 380.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.004549, allocations: 4.375 kB / 380.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.915e-05/0.004578, allocations: 41.62 kB / 380.2 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001069/0.004685, allocations: 97.2 kB / 380.3 MB, free: 496 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.872e-05/0.004744, allocations: 52.8 kB / 380.4 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.587e-05/0.00477, allocations: 37.33 kB / 380.4 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-06/0.004775, allocations: 0 / 380.4 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.884e-05/0.004824, allocations: 63.16 kB / 380.5 MB, free: 296 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.004825, allocations: 0 / 380.5 MB, free: 296 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002212/0.005046, allocations: 122.7 kB / 380.6 MB, free: 148 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.005095, allocations: 81.23 kB / 380.7 MB, free: 48 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.032e-05/0.005175, allocations: 142.2 kB / 380.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.005187, allocations: 25.7 kB / 380.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.839e-05/0.005226, allocations: 130.9 kB / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.00525, allocations: 352 / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.005285, allocations: 19.36 kB / 381 MB, free: 15.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.005444, allocations: 0.4883 MB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.656e-05/0.005471, allocations: 25.7 kB / 381.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.921e-05/0.00549, allocations: 25.7 kB / 381.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.684e-05/0.005557, allocations: 63.09 kB / 381.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.005559, allocations: 4.062 kB / 381.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.094e-05/0.00565, allocations: 101 kB / 381.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.005687, allocations: 29.7 kB / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.005692, allocations: 4 kB / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.005706, allocations: 0 / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.005707, allocations: 0 / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-06/0.00571, allocations: 0 / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.516e-05/0.005725, allocations: 0 / 381.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.005732, allocations: 0 / 381.7 MB, free: 14.9 MB / 362.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 9.901e-05/0.005831, allocations: 198.2 kB / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-06/0.005839, allocations: 0 / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.64e-05/0.005855, allocations: 3 kB / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.005857, allocations: 4 kB / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.005859, allocations: 0 / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.005862, allocations: 0 / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.399e-05/0.005936, allocations: 93.2 kB / 382 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.005937, allocations: 0 / 382 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-07/0.005938, allocations: 0 / 382 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.005939, allocations: 4 kB / 382 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.005945, allocations: 0 / 382 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.005946, allocations: 0 / 382 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.005949, allocations: 11.92 kB / 382 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001113/0.00606, allocations: 131.7 kB / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-06/0.006066, allocations: 0 / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.006077, allocations: 7.984 kB / 382.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-06/0.006085, allocations: 4 kB / 382.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.029e-05/0.006096, allocations: 3.984 kB / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.006098, allocations: 0 / 382.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.537e-05/0.006133, allocations: 119.2 kB / 382.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006133, allocations: 4 kB / 382.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002033/0.006337, allocations: 31.94 kB / 382.3 MB, free: 14.22 MB / 362.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.0006527/0.006989, allocations: 287.8 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.007154, allocations: 122.5 kB / 382.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.007156, allocations: 4.062 kB / 382.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.146e-05/0.007207, allocations: 96.73 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000111/0.007318, allocations: 3.938 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002337/0.007552, allocations: 125.6 kB / 382.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.684e-05/0.007589, allocations: 51.36 kB / 383 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.676e-06/0.007598, allocations: 0 / 383 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.597e-05/0.007654, allocations: 74.2 kB / 383.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of SimCode: time 7.51e-07/0.007654, allocations: 0 / 383.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of Templates: time 0.003652/0.01131, allocations: 1.159 MB / 384.2 MB, free: 12.26 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.3725988236255944]