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.001881/0.001881, allocations: 121.4 kB / 19.17 MB, free: 3.852 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.002433/0.002433, allocations: 206.5 kB / 22.12 MB, free: 0.9062 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.478/1.478, allocations: 230.3 MB / 255.2 MB, free: 15.2 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.2201/0.2201, allocations: 46.92 MB / 358.2 MB, free: 10.42 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.002475/0.002475, allocations: 83.86 kB / 0.4925 GB, free: 7.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.13, allocations: 66 MB / 0.5569 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001836/0.1319, allocations: 486.2 kB / 0.5574 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008316/0.1327, allocations: 299.7 kB / 0.5577 GB, free: 4.785 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.899e-05/0.1327, allocations: 4 kB / 0.5577 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.606e-05/0.1327, allocations: 0 / 0.5577 GB, free: 4.781 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.36e-06/0.1327, allocations: 3.938 kB / 0.5577 GB, free: 4.777 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.0009123/0.1337, allocations: 90.77 kB / 0.5578 GB, free: 4.691 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.504e-05/0.1337, allocations: 4 kB / 0.5578 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.383e-05/0.1337, allocations: 0 / 0.5578 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.585e-05/0.1337, allocations: 4 kB / 0.5578 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.913e-05/0.1338, allocations: 0 / 0.5578 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-06/0.1338, allocations: 0 / 0.5578 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002366/0.134, allocations: 115.8 kB / 0.5579 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.615e-06/0.134, allocations: 0 / 0.5579 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.134, allocations: 4 kB / 0.5579 GB, free: 4.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001858/0.1342, allocations: 87.73 kB / 0.558 GB, free: 4.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1342, allocations: 4 kB / 0.558 GB, free: 4.477 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1342, allocations: 0 / 0.558 GB, free: 4.477 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.1342, allocations: 4 kB / 0.558 GB, free: 4.473 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.0003858/0.1346, allocations: 361.1 kB / 0.5583 GB, free: 4.062 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.1347, allocations: 8.031 kB / 0.5584 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.1347, allocations: 4.938 kB / 0.5584 GB, free: 4.051 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.1348, allocations: 160.4 kB / 0.5585 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.1348, allocations: 384 / 0.5585 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-06/0.1348, allocations: 384 / 0.5585 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.16e-05/0.1349, allocations: 38.19 kB / 0.5585 GB, free: 3.812 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.1349, allocations: 4.172 kB / 0.5585 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1349, allocations: 7.938 kB / 0.5586 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.135, allocations: 0 / 0.5586 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.9e-05/0.135, allocations: 7.938 kB / 0.5586 GB, free: 3.793 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.1351, allocations: 149.6 kB / 0.5587 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.26e-05/0.1352, allocations: 14.58 kB / 0.5587 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.719e-05/0.1352, allocations: 14.59 kB / 0.5587 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.1352, allocations: 0 / 0.5587 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.485e-05/0.1352, allocations: 64.2 kB / 0.5588 GB, free: 3.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1352, allocations: 0 / 0.5588 GB, free: 3.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.1354, allocations: 67.34 kB / 0.5589 GB, free: 3.402 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.1355, allocations: 81.09 kB / 0.5589 GB, free: 3.305 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.075e-05/0.1355, allocations: 93.81 kB / 0.559 GB, free: 3.203 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.1355, allocations: 29.7 kB / 0.5591 GB, free: 3.168 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.1356, allocations: 80.14 kB / 0.5591 GB, free: 3.086 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.1356, allocations: 0 / 0.5591 GB, free: 3.086 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.1356, allocations: 13.84 kB / 0.5591 GB, free: 3.066 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1358, allocations: 314.8 kB / 0.5594 GB, free: 2.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.024e-05/0.1358, allocations: 0 / 0.5594 GB, free: 2.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.161e-06/0.1358, allocations: 0 / 0.5594 GB, free: 2.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.94e-05/0.1358, allocations: 68.2 kB / 0.5595 GB, free: 2.668 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1358, allocations: 0 / 0.5595 GB, free: 2.668 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.013e-05/0.1359, allocations: 63.39 kB / 0.5596 GB, free: 2.594 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.136, allocations: 33.8 kB / 0.5596 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.136, allocations: 0 / 0.5596 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.136, allocations: 3.938 kB / 0.5596 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.136, allocations: 0 / 0.5596 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.136, allocations: 0 / 0.5596 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.53e-05/0.136, allocations: 4 kB / 0.5596 GB, free: 2.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.136, allocations: 0 / 0.5596 GB, free: 2.547 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 9.759e-05/0.1361, allocations: 139.5 kB / 0.5597 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.1361, allocations: 4 kB / 0.5597 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.25e-05/0.1361, allocations: 11.06 kB / 0.5598 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1361, allocations: 0 / 0.5598 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.1361, allocations: 0 / 0.5598 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1361, allocations: 0 / 0.5598 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.1362, allocations: 149.6 kB / 0.5599 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1362, allocations: 4 kB / 0.5599 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.1362, allocations: 3.938 kB / 0.5599 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.1362, allocations: 0 / 0.5599 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.1363, allocations: 7.875 kB / 0.5599 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1363, allocations: 0 / 0.5599 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1363, allocations: 4 kB / 0.5599 GB, free: 2.168 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.1364, allocations: 94.83 kB / 0.56 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.221e-05/0.1364, allocations: 77.11 kB / 0.5601 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.1364, allocations: 7.875 kB / 0.5601 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.281e-05/0.1364, allocations: 4 kB / 0.5601 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-06/0.1365, allocations: 0 / 0.5601 GB, free: 1.945 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.1365, allocations: 0 / 0.5601 GB, free: 1.945 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.585e-05/0.1365, allocations: 75.28 kB / 0.5602 GB, free: 1.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1365, allocations: 4.031 kB / 0.5602 GB, free: 1.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.1368, allocations: 35.92 kB / 0.5602 GB, free: 1.832 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.0006457/0.1374, allocations: 256.7 kB / 0.5604 GB, free: 1.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001122/0.1375, allocations: 75.33 kB / 0.5605 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1375, allocations: 0 / 0.5605 GB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.654e-05/0.1376, allocations: 51.41 kB / 0.5606 GB, free: 1.465 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.1377, allocations: 4 kB / 0.5606 GB, free: 1.461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002082/0.1379, allocations: 106.8 kB / 0.5607 GB, free: 1.324 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.1382, allocations: 0.6729 MB / 0.5613 GB, free: 0.625 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.616e-05/0.1382, allocations: 7.438 kB / 0.5613 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1382, allocations: 0 / 0.5613 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of Templates: time 0.003051/0.1413, allocations: 1.155 MB / 0.5625 GB, free: 15.46 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/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-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.488996574000339]