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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001468/0.001468, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001711/0.001711, allocations: 217.7 kB / 24.5 MB, free: 4.133 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.326/1.326, allocations: 230.5 MB / 258.1 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2066/0.2066, allocations: 46.93 MB / 361.5 MB, free: 4.293 MB / 286.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 79.86 kB / 0.4974 GB, free: 7.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2646, allocations: 66.08 MB / 0.5619 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00147/0.266, allocations: 485 kB / 0.5624 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006709/0.2667, allocations: 317.3 kB / 0.5627 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.2667, allocations: 0 / 0.5627 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.719e-06/0.2667, allocations: 0 / 0.5627 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.679e-06/0.2667, allocations: 0 / 0.5627 GB, free: 3.477 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298: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.0007537/0.2675, allocations: 100.6 kB / 0.5628 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.5e-05/0.2675, allocations: 8 kB / 0.5628 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.512e-05/0.2676, allocations: 0 / 0.5628 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.385e-05/0.2676, allocations: 7.922 kB / 0.5628 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.446e-05/0.2676, allocations: 0 / 0.5628 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.889e-06/0.2676, allocations: 4 kB / 0.5628 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001959/0.2678, allocations: 111.9 kB / 0.5629 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.03e-06/0.2678, allocations: 0 / 0.5629 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.685e-05/0.2678, allocations: 4 kB / 0.5629 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.268, allocations: 87.59 kB / 0.563 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.268, allocations: 4 kB / 0.563 GB, free: 3.164 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.268, allocations: 0 / 0.563 GB, free: 3.164 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.268, allocations: 0 / 0.563 GB, free: 3.164 MB / 398.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.000322/0.2683, allocations: 286.5 kB / 0.5633 GB, free: 2.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.2683, allocations: 8.031 kB / 0.5633 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.744e-05/0.2683, allocations: 4.938 kB / 0.5633 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.897e-05/0.2684, allocations: 110.5 kB / 0.5634 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-06/0.2684, allocations: 4.375 kB / 0.5634 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-06/0.2685, allocations: 384 / 0.5634 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.402e-05/0.2685, allocations: 30.27 kB / 0.5634 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2685, allocations: 4.188 kB / 0.5634 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-06/0.2685, allocations: 3.938 kB / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.976e-06/0.2685, allocations: 0 / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.332e-05/0.2686, allocations: 0 / 0.5634 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001314/0.2687, allocations: 120.8 kB / 0.5636 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.939e-05/0.2687, allocations: 22.52 kB / 0.5636 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.255e-05/0.2687, allocations: 8.797 kB / 0.5636 GB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-06/0.2687, allocations: 0 / 0.5636 GB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.894e-05/0.2688, allocations: 64.33 kB / 0.5637 GB, free: 2.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.2688, allocations: 0 / 0.5637 GB, free: 2.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001538/0.269, allocations: 67.33 kB / 0.5637 GB, free: 2.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.269, allocations: 81.23 kB / 0.5638 GB, free: 2.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.726e-05/0.269, allocations: 93.81 kB / 0.5639 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.2691, allocations: 25.7 kB / 0.5639 GB, free: 2.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/0.2691, allocations: 80.14 kB / 0.564 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.576e-05/0.2691, allocations: 3.938 kB / 0.564 GB, free: 1.984 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/0.2691, allocations: 17.72 kB / 0.564 GB, free: 1.961 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.2693, allocations: 310.8 kB / 0.5643 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.055e-06/0.2693, allocations: 0 / 0.5643 GB, free: 1.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.292e-06/0.2693, allocations: 8 kB / 0.5643 GB, free: 1.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.621e-05/0.2693, allocations: 60.25 kB / 0.5644 GB, free: 1.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2693, allocations: 0 / 0.5644 GB, free: 1.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.791e-05/0.2694, allocations: 63.41 kB / 0.5644 GB, free: 1.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.2694, allocations: 33.7 kB / 0.5645 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.2694, allocations: 0 / 0.5645 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2695, allocations: 7.875 kB / 0.5645 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.825e-06/0.2695, allocations: 3.984 kB / 0.5645 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.2695, allocations: 3.938 kB / 0.5645 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.495e-05/0.2695, allocations: 8.078 kB / 0.5645 GB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.2695, allocations: 3.984 kB / 0.5645 GB, free: 1.426 MB / 398.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.804e-05/0.2696, allocations: 135.5 kB / 0.5646 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.802e-06/0.2696, allocations: 0 / 0.5646 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.878e-06/0.2696, allocations: 6.938 kB / 0.5646 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.2696, allocations: 0 / 0.5646 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2696, allocations: 0 / 0.5646 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-06/0.2696, allocations: 4 kB / 0.5646 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.296e-05/0.2697, allocations: 120.8 kB / 0.5647 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.2697, allocations: 4 kB / 0.5647 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.174e-06/0.2697, allocations: 4 kB / 0.5647 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.2697, allocations: 0 / 0.5647 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.2697, allocations: 7.938 kB / 0.5648 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.2697, allocations: 0 / 0.5648 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2697, allocations: 3.938 kB / 0.5648 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.147e-05/0.2698, allocations: 90.83 kB / 0.5648 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-06/0.2698, allocations: 4.031 kB / 0.5648 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.2698, allocations: 3.938 kB / 0.5649 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.584e-06/0.2698, allocations: 0 / 0.5649 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-06/0.2698, allocations: 3.938 kB / 0.5649 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.2698, allocations: 4 kB / 0.5649 GB, free: 0.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.744e-05/0.2699, allocations: 75.28 kB / 0.5649 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2699, allocations: 0 / 0.5649 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.2701, allocations: 39.86 kB / 0.565 GB, free: 0.8438 MB / 398.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.0005641/0.2707, allocations: 258 kB / 0.5652 GB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.413e-05/0.2707, allocations: 59.39 kB / 0.5653 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.2707, allocations: 0 / 0.5653 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.566e-05/0.2708, allocations: 59.41 kB / 0.5653 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001178/0.2709, allocations: 8.125 kB / 0.5653 GB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001818/0.2711, allocations: 106.7 kB / 0.5654 GB, free: 348 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.2714, allocations: 0.6768 MB / 0.5661 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.929e-06/0.2714, allocations: 11.38 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2714, allocations: 0 / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Templates: time 0.002565/0.274, allocations: 1.147 MB / 0.5672 GB, free: 14.48 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 6.864721754100174]