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.0008851/0.0008851, allocations: 96.62 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009306/0.0009306, allocations: 203.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.2 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2187/0.2187, allocations: 45.91 MB / 344 MB, free: 12.35 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002947/0.0002948, allocations: 8 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1328, allocations: 63.47 MB / 481.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005642/0.1334, allocations: 209.2 kB / 481.6 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006161/0.134, allocations: 283.5 kB / 481.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.486e-05/0.1341, allocations: 0 / 481.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.03e-05/0.1341, allocations: 0 / 481.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.398e-06/0.1341, allocations: 0 / 481.9 MB, free: 4.949 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.0003791/0.1345, allocations: 71.78 kB / 481.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.893e-05/0.1345, allocations: 0 / 481.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.166e-05/0.1346, allocations: 0 / 481.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.378e-05/0.1346, allocations: 0 / 481.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.373e-05/0.1346, allocations: 3.984 kB / 481.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-06/0.1346, allocations: 0 / 481.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.1348, allocations: 91.81 kB / 482 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.47e-06/0.1348, allocations: 0 / 482 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.002e-05/0.1348, allocations: 25.7 kB / 482.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.1349, allocations: 59.89 kB / 482.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.1349, allocations: 0 / 482.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1349, allocations: 0 / 482.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.135, allocations: 0 / 482.1 MB, free: 4.695 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.0002921/0.1353, allocations: 357.1 kB / 482.5 MB, free: 4.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1353, allocations: 12.03 kB / 482.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.607e-05/0.1353, allocations: 4 kB / 482.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.214e-05/0.1354, allocations: 163 kB / 482.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.1354, allocations: 0 / 482.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.1355, allocations: 0 / 482.6 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.625e-05/0.1355, allocations: 37.69 kB / 482.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.1355, allocations: 0 / 482.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.1356, allocations: 0 / 482.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1356, allocations: 0 / 482.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.456e-05/0.1356, allocations: 7.875 kB / 482.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001189/0.1357, allocations: 153.6 kB / 482.8 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.443e-05/0.1358, allocations: 14.58 kB / 482.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.911e-06/0.1358, allocations: 0 / 482.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.1358, allocations: 68.34 kB / 482.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1358, allocations: 0 / 482.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001468/0.136, allocations: 63.34 kB / 483 MB, free: 3.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.136, allocations: 77.11 kB / 483 MB, free: 3.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.344e-05/0.1361, allocations: 93.98 kB / 483.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.194e-05/0.1361, allocations: 25.7 kB / 483.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.455e-05/0.1361, allocations: 80.14 kB / 483.2 MB, free: 3.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.24e-05/0.1361, allocations: 0 / 483.2 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.693e-06/0.1361, allocations: 0 / 483.2 MB, free: 3.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.968e-05/0.1362, allocations: 318.8 kB / 483.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.054e-06/0.1363, allocations: 4 kB / 483.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.658e-06/0.1363, allocations: 0 / 483.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.455e-05/0.1363, allocations: 29.77 kB / 483.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1363, allocations: 0 / 483.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.205e-05/0.1364, allocations: 63.36 kB / 483.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.1364, allocations: 41.62 kB / 483.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.1364, allocations: 0 / 483.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.1364, allocations: 0 / 483.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1365, allocations: 3.938 kB / 483.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/0.1365, allocations: 0 / 483.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.402e-05/0.1365, allocations: 0 / 483.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.1365, allocations: 0 / 483.7 MB, free: 2.855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.029e-05/0.1366, allocations: 143.6 kB / 483.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-06/0.1366, allocations: 3.953 kB / 483.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.536e-06/0.1366, allocations: 3.125 kB / 483.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1366, allocations: 0 / 483.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.1366, allocations: 0 / 483.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1366, allocations: 7.984 kB / 483.9 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.1368, allocations: 141.7 kB / 484 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1368, allocations: 0 / 484 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1368, allocations: 0 / 484 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1368, allocations: 3.953 kB / 484 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.1368, allocations: 4 kB / 484 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1368, allocations: 4 kB / 484 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1368, allocations: 0 / 484 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.579e-05/0.1369, allocations: 98.75 kB / 484.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.406e-05/0.1369, allocations: 81.11 kB / 484.2 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.1369, allocations: 3.953 kB / 484.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.137, allocations: 3.938 kB / 484.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.137, allocations: 8.016 kB / 484.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.137, allocations: 0 / 484.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.643e-05/0.137, allocations: 79.28 kB / 484.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.137, allocations: 0 / 484.3 MB, free: 2.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002396/0.1373, allocations: 32 kB / 484.3 MB, free: 2.145 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005159/0.1378, allocations: 272.4 kB / 484.6 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.07e-05/0.1379, allocations: 59.41 kB / 484.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1379, allocations: 0 / 484.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.443e-05/0.1379, allocations: 55.41 kB / 484.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.564e-05/0.138, allocations: 0 / 484.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.1382, allocations: 82.81 kB / 484.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002247/0.1384, allocations: 0.6692 MB / 485.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.746e-06/0.1384, allocations: 7.969 kB / 485.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.766e-06/0.1384, allocations: 11.44 kB / 485.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1384, allocations: 0 / 485.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of Templates: time 0.003192/0.1416, allocations: 0.9284 MB / 486.4 MB, free: 28 kB / 350.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","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches