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.001838/0.001838, allocations: 115.1 kB / 18.45 MB, free: 4.566 MB / 14.72 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.002318/0.002318, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 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 1.477/1.477, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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.2337/0.2337, allocations: 46.93 MB / 357.8 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] 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 0.002046/0.002046, allocations: 67.91 kB / 0.492 GB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1325, allocations: 66 MB / 0.5565 GB, free: 5.359 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001822/0.1343, allocations: 487.1 kB / 0.557 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008408/0.1352, allocations: 311.6 kB / 0.5573 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.006e-05/0.1352, allocations: 0 / 0.5573 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.243e-05/0.1352, allocations: 0 / 0.5573 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.823e-06/0.1352, allocations: 0 / 0.5573 GB, free: 4.578 MB / 414.1 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.001054/0.1363, allocations: 94.11 kB / 0.5573 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.092e-05/0.1363, allocations: 0 / 0.5573 GB, free: 4.488 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.98e-05/0.1364, allocations: 4 kB / 0.5573 GB, free: 4.484 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.416e-05/0.1364, allocations: 3.984 kB / 0.5574 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.684e-05/0.1364, allocations: 3.984 kB / 0.5574 GB, free: 4.477 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.224e-06/0.1364, allocations: 4 kB / 0.5574 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003349/0.1368, allocations: 111.9 kB / 0.5575 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.797e-06/0.1368, allocations: 0 / 0.5575 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.011e-05/0.1368, allocations: 0 / 0.5575 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.137, allocations: 87.75 kB / 0.5575 GB, free: 4.277 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.137, allocations: 0 / 0.5575 GB, free: 4.277 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.137, allocations: 0 / 0.5575 GB, free: 4.277 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.137, allocations: 0 / 0.5575 GB, free: 4.277 MB / 414.1 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.0004353/0.1375, allocations: 357.1 kB / 0.5579 GB, free: 3.871 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1375, allocations: 8.031 kB / 0.5579 GB, free: 3.863 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.1375, allocations: 4.938 kB / 0.5579 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.1377, allocations: 168.3 kB / 0.5581 GB, free: 3.656 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-06/0.1377, allocations: 4.375 kB / 0.5581 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.1377, allocations: 4.375 kB / 0.5581 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.504e-05/0.1378, allocations: 26.27 kB / 0.5581 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.1378, allocations: 4.188 kB / 0.5581 GB, free: 3.613 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.1378, allocations: 7.875 kB / 0.5581 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1378, allocations: 0 / 0.5581 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.692e-05/0.1378, allocations: 0 / 0.5581 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001557/0.138, allocations: 149.7 kB / 0.5583 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.236e-05/0.138, allocations: 34.45 kB / 0.5583 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.637e-05/0.1381, allocations: 6.516 kB / 0.5583 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.1381, allocations: 4 kB / 0.5583 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.994e-05/0.1381, allocations: 60.33 kB / 0.5584 GB, free: 3.281 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.1381, allocations: 0 / 0.5584 GB, free: 3.281 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.000195/0.1383, allocations: 67.34 kB / 0.5584 GB, free: 3.203 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.022e-05/0.1384, allocations: 81.09 kB / 0.5585 GB, free: 3.105 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.914e-05/0.1384, allocations: 93.81 kB / 0.5586 GB, free: 3.004 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1384, allocations: 25.7 kB / 0.5586 GB, free: 2.973 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.255e-05/0.1385, allocations: 84.08 kB / 0.5587 GB, free: 2.887 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.1385, allocations: 4 kB / 0.5587 GB, free: 2.883 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.1385, allocations: 13.72 kB / 0.5587 GB, free: 2.863 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1387, allocations: 310.8 kB / 0.559 GB, free: 2.551 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.843e-05/0.1387, allocations: 8.125 kB / 0.559 GB, free: 2.543 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.1387, allocations: 0 / 0.559 GB, free: 2.543 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.505e-05/0.1388, allocations: 60.27 kB / 0.5591 GB, free: 2.469 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1388, allocations: 3.984 kB / 0.5591 GB, free: 2.465 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.516e-05/0.1388, allocations: 63.41 kB / 0.5591 GB, free: 2.391 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.1389, allocations: 31.73 kB / 0.5592 GB, free: 2.355 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.1389, allocations: 4 kB / 0.5592 GB, free: 2.352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1389, allocations: 3.938 kB / 0.5592 GB, free: 2.348 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1389, allocations: 96 / 0.5592 GB, free: 2.348 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1389, allocations: 7.938 kB / 0.5592 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.1389, allocations: 0 / 0.5592 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.1389, allocations: 0 / 0.5592 GB, free: 2.34 MB / 414.1 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 0.0001034/0.139, allocations: 139.5 kB / 0.5593 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.323e-06/0.139, allocations: 0 / 0.5593 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.075e-05/0.139, allocations: 7.062 kB / 0.5593 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.139, allocations: 0 / 0.5593 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.139, allocations: 0 / 0.5593 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.139, allocations: 4 kB / 0.5593 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.1392, allocations: 157.6 kB / 0.5595 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1392, allocations: 0 / 0.5595 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.1392, allocations: 0 / 0.5595 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.1392, allocations: 0 / 0.5595 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1392, allocations: 3.938 kB / 0.5595 GB, free: 1.973 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1392, allocations: 7.938 kB / 0.5595 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1392, allocations: 0 / 0.5595 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001036/0.1393, allocations: 90.77 kB / 0.5596 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.425e-05/0.1394, allocations: 81.14 kB / 0.5596 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.1394, allocations: 7.938 kB / 0.5597 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.1394, allocations: 3.938 kB / 0.5597 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.1394, allocations: 0 / 0.5597 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.1394, allocations: 0 / 0.5597 GB, free: 1.742 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.438e-05/0.1394, allocations: 75.28 kB / 0.5597 GB, free: 1.668 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1394, allocations: 0 / 0.5597 GB, free: 1.668 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002582/0.1397, allocations: 39.92 kB / 0.5598 GB, free: 1.629 MB / 414.1 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.0006662/0.1404, allocations: 258.2 kB / 0.56 GB, free: 1.418 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000131/0.1405, allocations: 59.39 kB / 0.5601 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1405, allocations: 0 / 0.5601 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.07e-05/0.1405, allocations: 59.41 kB / 0.5601 GB, free: 1.277 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001203/0.1406, allocations: 6.469 kB / 0.5601 GB, free: 1.273 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002243/0.1409, allocations: 106.8 kB / 0.5602 GB, free: 1.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.1412, allocations: 0.6767 MB / 0.5609 GB, free: 444 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.165e-05/0.1412, allocations: 7.438 kB / 0.5609 GB, free: 436 kB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1412, allocations: 0 / 0.5609 GB, free: 436 kB / 414.1 MB Notification: Performance of Templates: time 0.003422/0.1446, allocations: 1.151 MB / 0.562 GB, free: 15.27 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 7.7190382439875975]