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.001565/0.001565, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001804, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 46.11 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 79.28 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1173, allocations: 62.45 MB / 481.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002146/0.1195, allocations: 478.8 kB / 481.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008354/0.1204, allocations: 309.6 kB / 482.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.211e-05/0.1204, allocations: 0 / 482.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.002e-05/0.1204, allocations: 0 / 482.2 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.871e-06/0.1205, allocations: 0 / 482.2 MB, free: 3.789 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.0009721/0.1215, allocations: 90.11 kB / 482.3 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.422e-05/0.1215, allocations: 7.938 kB / 482.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.747e-05/0.1216, allocations: 3.984 kB / 482.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.631e-05/0.1216, allocations: 4 kB / 482.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.316e-05/0.1216, allocations: 3.984 kB / 482.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.464e-06/0.1216, allocations: 0 / 482.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.1218, allocations: 107.9 kB / 482.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.053e-06/0.1218, allocations: 0 / 482.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.163e-05/0.1219, allocations: 8 kB / 482.4 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.1221, allocations: 75.88 kB / 482.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1221, allocations: 0 / 482.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1221, allocations: 0 / 482.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1221, allocations: 4 kB / 482.5 MB, free: 3.492 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.0003261/0.1224, allocations: 361.2 kB / 482.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1225, allocations: 12.03 kB / 482.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.1225, allocations: 0.9375 kB / 482.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.789e-05/0.1226, allocations: 172.3 kB / 483 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.1226, allocations: 384 / 483 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.769e-06/0.1226, allocations: 384 / 483 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.501e-05/0.1227, allocations: 30.27 kB / 483.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.1227, allocations: 192 / 483.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.1228, allocations: 3.938 kB / 483.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.1228, allocations: 0 / 483.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.807e-05/0.1228, allocations: 0 / 483.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001237/0.1229, allocations: 153.7 kB / 483.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.256e-05/0.123, allocations: 22.5 kB / 483.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.123, allocations: 8.953 kB / 483.3 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-06/0.123, allocations: 3.938 kB / 483.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/0.1231, allocations: 56.27 kB / 483.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1231, allocations: 0 / 483.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001678/0.1232, allocations: 67.34 kB / 483.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.1233, allocations: 85.22 kB / 483.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.457e-05/0.1233, allocations: 89.86 kB / 483.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.1234, allocations: 25.7 kB / 483.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.527e-05/0.1234, allocations: 84.08 kB / 483.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.1234, allocations: 7.984 kB / 483.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.1234, allocations: 9.719 kB / 483.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.417e-05/0.1235, allocations: 314.8 kB / 484 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.132e-05/0.1236, allocations: 7.938 kB / 484 MB, free: 1.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.461e-06/0.1236, allocations: 4 kB / 484 MB, free: 1.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.581e-05/0.1236, allocations: 60.27 kB / 484.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.428e-05/0.1236, allocations: 3.984 kB / 484.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.789e-05/0.1237, allocations: 59.41 kB / 484.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.1238, allocations: 29.7 kB / 484.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1238, allocations: 0 / 484.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1238, allocations: 3.938 kB / 484.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.882e-06/0.1238, allocations: 0 / 484.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.1238, allocations: 7.922 kB / 484.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.793e-05/0.1238, allocations: 8.094 kB / 484.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.1239, allocations: 0 / 484.2 MB, free: 1.559 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 8.196e-05/0.1239, allocations: 139.5 kB / 484.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.101e-05/0.124, allocations: 8 kB / 484.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.779e-06/0.124, allocations: 7.062 kB / 484.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.124, allocations: 0 / 484.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.124, allocations: 0 / 484.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.124, allocations: 0 / 484.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.436e-05/0.1241, allocations: 145.7 kB / 484.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.1241, allocations: 4 kB / 484.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.863e-06/0.1241, allocations: 4 kB / 484.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1241, allocations: 0 / 484.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.1241, allocations: 3.938 kB / 484.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1241, allocations: 0 / 484.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1241, allocations: 0 / 484.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.192e-05/0.1242, allocations: 90.83 kB / 484.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.06e-05/0.1243, allocations: 77.11 kB / 484.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.1243, allocations: 7.969 kB / 484.6 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-06/0.1243, allocations: 3.938 kB / 484.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.574e-05/0.1243, allocations: 7.984 kB / 484.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.1243, allocations: 0 / 484.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.579e-05/0.1244, allocations: 87.22 kB / 484.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1244, allocations: 0 / 484.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002409/0.1246, allocations: 35.98 kB / 484.8 MB, free: 0.8438 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.0005145/0.1251, allocations: 268.6 kB / 485 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.134e-05/0.1252, allocations: 63.39 kB / 485.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1253, allocations: 4 kB / 485.1 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.068e-05/0.1253, allocations: 55.41 kB / 485.2 MB, free: 488 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1254, allocations: 4 kB / 485.2 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001728/0.1256, allocations: 88.91 kB / 485.3 MB, free: 368 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.1259, allocations: 0.6728 MB / 485.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.793e-06/0.1259, allocations: 0 / 485.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.098e-05/0.1259, allocations: 7.438 kB / 485.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1259, allocations: 4 kB / 485.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Templates: time 0.003637/0.1295, allocations: 0.9726 MB / 486.9 MB, free: 14.68 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 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches