Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001143/0.001143, allocations: 115.4 kB / 17.33 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 201.8 kB / 18.27 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.4 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2145/0.2145, allocations: 46.1 MB / 343.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 79.44 kB / 417 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1194, allocations: 62.45 MB / 479.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002227/0.1217, allocations: 0.5361 MB / 480 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007581/0.1225, allocations: 293.8 kB / 480.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.919e-05/0.1226, allocations: 3.938 kB / 480.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.93e-05/0.1226, allocations: 0 / 480.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.841e-06/0.1226, allocations: 0 / 480.3 MB, free: 4.824 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001059/0.1237, allocations: 83.78 kB / 480.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.899e-05/0.1238, allocations: 7.938 kB / 480.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.794e-05/0.1238, allocations: 0 / 480.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.373e-05/0.1238, allocations: 7.984 kB / 480.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.551e-05/0.1239, allocations: 0 / 480.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.496e-06/0.1239, allocations: 0 / 480.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002251/0.1241, allocations: 103.8 kB / 480.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.1241, allocations: 0 / 480.5 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.572e-05/0.1242, allocations: 4 kB / 480.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.1244, allocations: 83.88 kB / 480.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1244, allocations: 0 / 480.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.1244, allocations: 4 kB / 480.6 MB, free: 4.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1245, allocations: 7.938 kB / 480.6 MB, free: 4.527 MB / 350.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.0006074/0.1251, allocations: 357.3 kB / 481 MB, free: 4.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.208e-05/0.1251, allocations: 12.03 kB / 481 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.1252, allocations: 0.9375 kB / 481 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.1253, allocations: 160.4 kB / 481.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.1254, allocations: 384 / 481.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.1254, allocations: 384 / 481.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.1255, allocations: 38.2 kB / 481.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1256, allocations: 192 / 481.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.1256, allocations: 7.938 kB / 481.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1256, allocations: 0 / 481.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.014e-05/0.1256, allocations: 4 kB / 481.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002095/0.1259, allocations: 153.7 kB / 481.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.641e-05/0.1259, allocations: 14.58 kB / 481.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.204e-05/0.126, allocations: 8.953 kB / 481.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.126, allocations: 0 / 481.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.277e-05/0.1261, allocations: 64.2 kB / 481.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1261, allocations: 0 / 481.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000242/0.1263, allocations: 71.33 kB / 481.5 MB, free: 3.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.682e-05/0.1264, allocations: 77.11 kB / 481.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.197e-05/0.1265, allocations: 89.86 kB / 481.6 MB, free: 3.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.1265, allocations: 25.7 kB / 481.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.709e-05/0.1265, allocations: 88.08 kB / 481.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.1266, allocations: 0 / 481.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.1266, allocations: 13.84 kB / 481.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.1268, allocations: 318.8 kB / 482.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.595e-05/0.1268, allocations: 4 kB / 482.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.929e-06/0.1268, allocations: 0 / 482.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.408e-05/0.1269, allocations: 68.2 kB / 482.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1269, allocations: 0 / 482.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001003/0.127, allocations: 59.41 kB / 482.2 MB, free: 2.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.969e-05/0.1271, allocations: 35.72 kB / 482.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1271, allocations: 4.094 kB / 482.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1271, allocations: 3.938 kB / 482.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.153e-06/0.1271, allocations: 0 / 482.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1271, allocations: 3.984 kB / 482.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.567e-05/0.1272, allocations: 4 kB / 482.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.1272, allocations: 0 / 482.3 MB, free: 2.602 MB / 350.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.0001372/0.1273, allocations: 135.5 kB / 482.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.1274, allocations: 4 kB / 482.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.144e-05/0.1274, allocations: 7.062 kB / 482.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1274, allocations: 4 kB / 482.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1274, allocations: 0 / 482.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1274, allocations: 3.984 kB / 482.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.1275, allocations: 141.7 kB / 482.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1275, allocations: 7.922 kB / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.1275, allocations: 4 kB / 482.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1275, allocations: 0 / 482.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.1276, allocations: 3.938 kB / 482.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1276, allocations: 0 / 482.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1276, allocations: 0 / 482.6 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.1277, allocations: 94.83 kB / 482.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.838e-05/0.1277, allocations: 77.11 kB / 482.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.1278, allocations: 3.938 kB / 482.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.329e-05/0.1278, allocations: 4 kB / 482.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.697e-05/0.1278, allocations: 7.984 kB / 482.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.1278, allocations: 0 / 482.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.908e-05/0.1279, allocations: 75.28 kB / 482.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1279, allocations: 4.031 kB / 482.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.1282, allocations: 36 kB / 482.9 MB, free: 1.895 MB / 350.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.0006236/0.1288, allocations: 279.8 kB / 483.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001138/0.1289, allocations: 67.34 kB / 483.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1289, allocations: 0 / 483.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.295e-05/0.129, allocations: 51.41 kB / 483.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1291, allocations: 7.984 kB / 483.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002377/0.1294, allocations: 84.84 kB / 483.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.1297, allocations: 0.669 MB / 484 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.736e-06/0.1297, allocations: 8.062 kB / 484 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.668e-05/0.1297, allocations: 7.438 kB / 484 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1297, allocations: 0 / 484 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of Templates: time 0.00393/0.1337, allocations: 0.9608 MB / 485 MB, free: 15.73 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches