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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001593/0.001593, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 218 kB / 23.54 MB, free: 5.391 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 230.2 MB / 256.8 MB, free: 8.617 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2331/0.2331, allocations: 46.88 MB / 359.9 MB, free: 5.039 MB / 286.1 MB [Timeout remaining time 90] 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=500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 83.86 kB / 0.495 GB, free: 8.691 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3473, allocations: 65.98 MB / 0.5594 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001703/0.3491, allocations: 495.6 kB / 0.5599 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007673/0.3498, allocations: 296.9 kB / 0.5602 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.874e-05/0.3498, allocations: 0 / 0.5602 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.107e-05/0.3498, allocations: 0 / 0.5602 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.3499, allocations: 0 / 0.5602 GB, free: 4.375 MB / 398.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.0008612/0.3507, allocations: 95.7 kB / 0.5602 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.224e-05/0.3508, allocations: 4 kB / 0.5602 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.059e-05/0.3508, allocations: 4 kB / 0.5603 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.348e-05/0.3508, allocations: 0 / 0.5603 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.081e-05/0.3508, allocations: 0 / 0.5603 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-06/0.3508, allocations: 0 / 0.5603 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000211/0.351, allocations: 111.9 kB / 0.5604 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-06/0.3511, allocations: 3.938 kB / 0.5604 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.702e-05/0.3511, allocations: 7.922 kB / 0.5604 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.3513, allocations: 83.67 kB / 0.5604 GB, free: 4.074 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3513, allocations: 0 / 0.5604 GB, free: 4.074 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3513, allocations: 0 / 0.5604 GB, free: 4.074 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3513, allocations: 0 / 0.5604 GB, free: 4.074 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.0004133/0.3517, allocations: 367.6 kB / 0.5608 GB, free: 3.664 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3517, allocations: 8.031 kB / 0.5608 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.3517, allocations: 4.938 kB / 0.5608 GB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.3519, allocations: 160.4 kB / 0.561 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.3519, allocations: 384 / 0.561 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.349e-05/0.3519, allocations: 8.25 kB / 0.561 GB, free: 3.449 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.835e-05/0.352, allocations: 34.27 kB / 0.561 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.352, allocations: 192 / 0.561 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.352, allocations: 3.938 kB / 0.561 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.352, allocations: 4 kB / 0.561 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.493e-05/0.352, allocations: 0 / 0.561 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001498/0.3522, allocations: 149.7 kB / 0.5612 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.228e-05/0.3522, allocations: 14.58 kB / 0.5612 GB, free: 3.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/0.3522, allocations: 8.797 kB / 0.5612 GB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.935e-06/0.3522, allocations: 0 / 0.5612 GB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.408e-05/0.3523, allocations: 64.36 kB / 0.5612 GB, free: 3.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3523, allocations: 4 kB / 0.5612 GB, free: 3.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001712/0.3525, allocations: 67.33 kB / 0.5613 GB, free: 3.012 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.3525, allocations: 77.11 kB / 0.5614 GB, free: 2.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.983e-05/0.3526, allocations: 93.81 kB / 0.5615 GB, free: 2.816 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.3526, allocations: 25.7 kB / 0.5615 GB, free: 2.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.3526, allocations: 80.14 kB / 0.5616 GB, free: 2.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.3526, allocations: 0 / 0.5616 GB, free: 2.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.33e-05/0.3527, allocations: 17.72 kB / 0.5616 GB, free: 2.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3528, allocations: 319 kB / 0.5619 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.3528, allocations: 3.938 kB / 0.5619 GB, free: 2.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.394e-06/0.3528, allocations: 4 kB / 0.5619 GB, free: 2.352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.916e-05/0.3529, allocations: 56.27 kB / 0.562 GB, free: 2.281 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.3529, allocations: 0 / 0.562 GB, free: 2.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.984e-05/0.353, allocations: 63.41 kB / 0.562 GB, free: 2.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.353, allocations: 37.69 kB / 0.5621 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.353, allocations: 96 / 0.5621 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.353, allocations: 7.938 kB / 0.5621 GB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.795e-06/0.353, allocations: 4 kB / 0.5621 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.353, allocations: 0 / 0.5621 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.412e-05/0.353, allocations: 0 / 0.5621 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.3531, allocations: 3.938 kB / 0.5621 GB, free: 2.148 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 0.0001027/0.3532, allocations: 139.5 kB / 0.5622 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-06/0.3532, allocations: 3.984 kB / 0.5622 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.045e-05/0.3532, allocations: 7.062 kB / 0.5622 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3532, allocations: 0 / 0.5622 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3532, allocations: 11.94 kB / 0.5622 GB, free: 1.977 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3532, allocations: 3.984 kB / 0.5622 GB, free: 1.973 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001227/0.3533, allocations: 145.7 kB / 0.5624 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3533, allocations: 0 / 0.5624 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.3533, allocations: 0 / 0.5624 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3533, allocations: 0 / 0.5624 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.3533, allocations: 7.938 kB / 0.5624 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3533, allocations: 0 / 0.5624 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3533, allocations: 0 / 0.5624 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.3534, allocations: 90.83 kB / 0.5625 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.3535, allocations: 81.11 kB / 0.5625 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.3535, allocations: 3.938 kB / 0.5625 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.777e-06/0.3535, allocations: 0 / 0.5625 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.3535, allocations: 3.984 kB / 0.5625 GB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.3535, allocations: 0 / 0.5625 GB, free: 1.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.3536, allocations: 83.22 kB / 0.5626 GB, free: 1.473 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3536, allocations: 0 / 0.5626 GB, free: 1.473 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.3538, allocations: 39.91 kB / 0.5627 GB, free: 1.434 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.0006876/0.3545, allocations: 277.9 kB / 0.5629 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.591e-05/0.3546, allocations: 55.41 kB / 0.563 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.3546, allocations: 0 / 0.563 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.635e-05/0.3547, allocations: 59.41 kB / 0.563 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.3548, allocations: 7.922 kB / 0.563 GB, free: 1.059 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002/0.355, allocations: 102.8 kB / 0.5631 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.3553, allocations: 0.6767 MB / 0.5638 GB, free: 228 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.161e-05/0.3553, allocations: 7.438 kB / 0.5638 GB, free: 220 kB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3553, allocations: 4.125 kB / 0.5638 GB, free: 216 kB / 398.1 MB Notification: Performance of Templates: time 0.003021/0.3583, allocations: 1.163 MB / 0.5649 GB, free: 15.05 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.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) [Timeout 660] [Timeout remaining time 660] Reference file matches