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.001332/0.001332, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.001447/0.001447, allocations: 213.9 kB / 24.48 MB, free: 3.836 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.497/1.497, allocations: 230.5 MB / 258.1 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.2276/0.2276, allocations: 46.95 MB / 361.6 MB, free: 3.953 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.002629/0.002629, allocations: 83.88 kB / 0.4973 GB, free: 7.102 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.323, allocations: 66.09 MB / 0.5619 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001711/0.3247, allocations: 485.1 kB / 0.5623 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007887/0.3255, allocations: 305.3 kB / 0.5626 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.92e-05/0.3256, allocations: 4 kB / 0.5626 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.289e-05/0.3256, allocations: 0 / 0.5626 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.394e-06/0.3256, allocations: 3.938 kB / 0.5626 GB, free: 3.207 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.0008652/0.3264, allocations: 98.02 kB / 0.5627 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.352e-05/0.3265, allocations: 0 / 0.5627 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.704e-05/0.3265, allocations: 0 / 0.5627 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.432e-05/0.3265, allocations: 0 / 0.5627 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.369e-05/0.3266, allocations: 7.984 kB / 0.5627 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.3266, allocations: 0 / 0.5627 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.3268, allocations: 107.8 kB / 0.5629 GB, free: 3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-06/0.3268, allocations: 0 / 0.5629 GB, free: 3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.344e-05/0.3268, allocations: 8 kB / 0.5629 GB, free: 2.992 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002004/0.327, allocations: 87.61 kB / 0.5629 GB, free: 2.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.327, allocations: 3.984 kB / 0.5629 GB, free: 2.906 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.327, allocations: 0 / 0.5629 GB, free: 2.906 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.327, allocations: 0 / 0.5629 GB, free: 2.906 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.0003764/0.3274, allocations: 290.5 kB / 0.5632 GB, free: 2.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.3274, allocations: 8.031 kB / 0.5632 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.456e-05/0.3275, allocations: 0.9375 kB / 0.5632 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.721e-05/0.3276, allocations: 106.5 kB / 0.5633 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.3276, allocations: 384 / 0.5633 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.3276, allocations: 384 / 0.5633 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.3277, allocations: 63.95 kB / 0.5634 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.3277, allocations: 4.125 kB / 0.5634 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.3277, allocations: 3.938 kB / 0.5634 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.307e-06/0.3277, allocations: 0 / 0.5634 GB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.686e-05/0.3277, allocations: 33.69 kB / 0.5634 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.3279, allocations: 97.33 kB / 0.5635 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.133e-05/0.3279, allocations: 44.31 kB / 0.5636 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.939e-05/0.328, allocations: 30.56 kB / 0.5636 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.328, allocations: 0 / 0.5636 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.631e-05/0.328, allocations: 64.31 kB / 0.5637 GB, free: 2.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.328, allocations: 4 kB / 0.5637 GB, free: 2.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002089/0.3282, allocations: 126.7 kB / 0.5638 GB, free: 1.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.3283, allocations: 81.05 kB / 0.5639 GB, free: 1.781 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.307e-05/0.3284, allocations: 93.81 kB / 0.564 GB, free: 1.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.3284, allocations: 25.7 kB / 0.564 GB, free: 1.648 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.519e-05/0.3284, allocations: 80.14 kB / 0.5641 GB, free: 1.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.3284, allocations: 4 kB / 0.5641 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.3285, allocations: 17.7 kB / 0.5641 GB, free: 1.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3286, allocations: 310.8 kB / 0.5644 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.636e-05/0.3286, allocations: 29.83 kB / 0.5644 GB, free: 1.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.907e-05/0.3287, allocations: 29.7 kB / 0.5644 GB, free: 1.156 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.87e-05/0.3287, allocations: 64.2 kB / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3287, allocations: 0 / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.9e-05/0.3288, allocations: 93.09 kB / 0.5646 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.783e-05/0.3289, allocations: 29.7 kB / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.3289, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.3289, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.3289, allocations: 7.938 kB / 0.5646 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3289, allocations: 0 / 0.5646 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.7e-05/0.3289, allocations: 4.094 kB / 0.5646 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-06/0.3289, allocations: 0 / 0.5646 GB, free: 0.9219 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 9.669e-05/0.329, allocations: 139.5 kB / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.293e-06/0.329, allocations: 0 / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.297e-06/0.329, allocations: 3 kB / 0.5648 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.329, allocations: 3.938 kB / 0.5648 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-06/0.329, allocations: 0 / 0.5648 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.329, allocations: 3.938 kB / 0.5648 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.955e-05/0.3291, allocations: 105.3 kB / 0.5649 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3291, allocations: 0 / 0.5649 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3291, allocations: 4 kB / 0.5649 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.3291, allocations: 3.984 kB / 0.5649 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.3291, allocations: 3.938 kB / 0.5649 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3291, allocations: 4 kB / 0.5649 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3291, allocations: 3.938 kB / 0.5649 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.3293, allocations: 116.5 kB / 0.565 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-06/0.3293, allocations: 0 / 0.565 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.3293, allocations: 0 / 0.565 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.3293, allocations: 0 / 0.565 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.53e-05/0.3293, allocations: 11.88 kB / 0.565 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.3293, allocations: 32 / 0.565 GB, free: 460 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.584e-05/0.3293, allocations: 79.28 kB / 0.5651 GB, free: 380 kB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3293, allocations: 0 / 0.5651 GB, free: 380 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002717/0.3296, allocations: 39.86 kB / 0.5651 GB, free: 340 kB / 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.0006576/0.3303, allocations: 269.5 kB / 0.5654 GB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001616/0.3304, allocations: 122.7 kB / 0.5655 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3304, allocations: 0 / 0.5655 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.527e-05/0.3305, allocations: 85.05 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001266/0.3306, allocations: 6.031 kB / 0.5656 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002431/0.3309, allocations: 136.4 kB / 0.5657 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.874e-05/0.3309, allocations: 55.36 kB / 0.5658 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.292e-05/0.3309, allocations: 7.438 kB / 0.5658 GB, free: 15.6 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3309, allocations: 0 / 0.5658 GB, free: 15.6 MB / 414.1 MB Notification: Performance of Templates: time 0.002944/0.3339, allocations: 1.155 MB / 0.5669 GB, free: 14.45 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: 7.961881944909692]