Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001515/0.001515, allocations: 111.9 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001877/0.001877, allocations: 208.9 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.2 MB / 255.2 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.234/0.234, allocations: 46.89 MB / 358.1 MB, free: 10.5 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 87.84 kB / 0.4923 GB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1342, allocations: 65.98 MB / 0.5568 GB, free: 5.945 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001775/0.1359, allocations: 490.4 kB / 0.5572 GB, free: 5.461 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000788/0.1367, allocations: 299.6 kB / 0.5575 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.92e-05/0.1367, allocations: 3.938 kB / 0.5575 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.217e-05/0.1368, allocations: 0 / 0.5575 GB, free: 5.164 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.111e-06/0.1368, allocations: 0 / 0.5575 GB, free: 5.164 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0008729/0.1376, allocations: 93.45 kB / 0.5576 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.455e-05/0.1377, allocations: 0 / 0.5576 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.849e-05/0.1377, allocations: 8 kB / 0.5576 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.535e-05/0.1377, allocations: 0 / 0.5576 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.316e-05/0.1378, allocations: 3.938 kB / 0.5576 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.043e-06/0.1378, allocations: 0 / 0.5576 GB, free: 5.062 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002226/0.138, allocations: 107.9 kB / 0.5577 GB, free: 4.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.147e-06/0.138, allocations: 7.938 kB / 0.5577 GB, free: 4.949 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.927e-05/0.138, allocations: 0 / 0.5577 GB, free: 4.949 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.1382, allocations: 91.72 kB / 0.5578 GB, free: 4.859 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1382, allocations: 0 / 0.5578 GB, free: 4.859 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1382, allocations: 0 / 0.5578 GB, free: 4.859 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.1382, allocations: 0 / 0.5578 GB, free: 4.859 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.0004403/0.1387, allocations: 365.1 kB / 0.5582 GB, free: 4.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.1387, allocations: 8.031 kB / 0.5582 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.1387, allocations: 0.9375 kB / 0.5582 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.1389, allocations: 160.4 kB / 0.5583 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.1389, allocations: 384 / 0.5583 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.1389, allocations: 4.375 kB / 0.5583 GB, free: 4.238 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.504e-05/0.139, allocations: 30.2 kB / 0.5584 GB, free: 4.203 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.139, allocations: 8.172 kB / 0.5584 GB, free: 4.195 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.139, allocations: 7.938 kB / 0.5584 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.139, allocations: 4 kB / 0.5584 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.886e-05/0.139, allocations: 4 kB / 0.5584 GB, free: 4.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.1392, allocations: 141.7 kB / 0.5585 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.616e-05/0.1393, allocations: 14.67 kB / 0.5585 GB, free: 3.969 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.833e-05/0.1393, allocations: 14.48 kB / 0.5586 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.1393, allocations: 0 / 0.5586 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.132e-05/0.1393, allocations: 68.19 kB / 0.5586 GB, free: 3.871 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1393, allocations: 4 kB / 0.5586 GB, free: 3.867 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002057/0.1395, allocations: 63.34 kB / 0.5587 GB, free: 3.793 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.1396, allocations: 77.11 kB / 0.5588 GB, free: 3.699 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.518e-05/0.1397, allocations: 93.81 kB / 0.5589 GB, free: 3.598 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.1397, allocations: 29.7 kB / 0.5589 GB, free: 3.562 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.551e-05/0.1397, allocations: 80.14 kB / 0.559 GB, free: 3.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.594e-05/0.1397, allocations: 0 / 0.559 GB, free: 3.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.1398, allocations: 17.7 kB / 0.559 GB, free: 3.457 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1399, allocations: 319 kB / 0.5593 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-06/0.1399, allocations: 0 / 0.5593 GB, free: 3.137 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.751e-06/0.1399, allocations: 0 / 0.5593 GB, free: 3.137 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.417e-05/0.14, allocations: 64.2 kB / 0.5593 GB, free: 3.059 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-06/0.14, allocations: 0 / 0.5593 GB, free: 3.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.833e-05/0.1401, allocations: 67.39 kB / 0.5594 GB, free: 2.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.646e-05/0.1401, allocations: 31.42 kB / 0.5594 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.1401, allocations: 0 / 0.5594 GB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.1402, allocations: 8.031 kB / 0.5594 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.1402, allocations: 0 / 0.5594 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1402, allocations: 4 kB / 0.5594 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.1402, allocations: 0 / 0.5594 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.1402, allocations: 3.938 kB / 0.5595 GB, free: 2.93 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.0001035/0.1403, allocations: 131.5 kB / 0.5596 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.274e-06/0.1403, allocations: 4 kB / 0.5596 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.28e-05/0.1403, allocations: 11.05 kB / 0.5596 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.1403, allocations: 0 / 0.5596 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1403, allocations: 4 kB / 0.5596 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1403, allocations: 3.938 kB / 0.5596 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.1404, allocations: 145.7 kB / 0.5597 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.1404, allocations: 0 / 0.5597 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1404, allocations: 0 / 0.5597 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.1404, allocations: 0 / 0.5597 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.1404, allocations: 3.938 kB / 0.5597 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1405, allocations: 3.984 kB / 0.5597 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1405, allocations: 3.938 kB / 0.5597 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.1406, allocations: 94.84 kB / 0.5598 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.842e-05/0.1406, allocations: 85.08 kB / 0.5599 GB, free: 2.344 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.1406, allocations: 3.938 kB / 0.5599 GB, free: 2.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.263e-05/0.1406, allocations: 8 kB / 0.5599 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.77e-05/0.1407, allocations: 0 / 0.5599 GB, free: 2.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.554e-06/0.1407, allocations: 0 / 0.5599 GB, free: 2.332 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.621e-05/0.1407, allocations: 75.28 kB / 0.56 GB, free: 2.258 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1407, allocations: 0 / 0.56 GB, free: 2.258 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.1409, allocations: 35.91 kB / 0.56 GB, free: 2.223 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.0007006/0.1416, allocations: 284 kB / 0.5603 GB, free: 1.984 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.1418, allocations: 55.41 kB / 0.5604 GB, free: 1.918 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1418, allocations: 0 / 0.5604 GB, free: 1.918 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.173e-05/0.1418, allocations: 59.39 kB / 0.5604 GB, free: 1.848 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.1419, allocations: 6.25 kB / 0.5604 GB, free: 1.844 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002049/0.1421, allocations: 102.8 kB / 0.5605 GB, free: 1.711 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.1425, allocations: 0.669 MB / 0.5612 GB, free: 1.016 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.1425, allocations: 11.44 kB / 0.5612 GB, free: 1.004 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1425, allocations: 4.125 kB / 0.5612 GB, free: 1 MB / 414.1 MB Notification: Performance of Templates: time 0.003228/0.1457, allocations: 1.167 MB / 0.5623 GB, free: 15.82 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.6946481701452285]