Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001387/0.001387, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001488/0.001488, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.553/1.553, allocations: 230.2 MB / 257.8 MB, free: 8.516 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2974/0.2974, allocations: 46.9 MB / 361.1 MB, free: 4.656 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002403/0.002403, allocations: 87.84 kB / 0.4967 GB, free: 7.867 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4213, allocations: 65.98 MB / 0.5612 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001829/0.4232, allocations: 495.6 kB / 0.5616 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008075/0.424, allocations: 313.3 kB / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.344e-05/0.424, allocations: 0 / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.899e-05/0.424, allocations: 0 / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.424, allocations: 4 kB / 0.5619 GB, free: 4.246 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.0008627/0.4249, allocations: 79.78 kB / 0.562 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.061e-05/0.4249, allocations: 11.94 kB / 0.562 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.854e-05/0.425, allocations: 4 kB / 0.562 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.89e-05/0.425, allocations: 3.984 kB / 0.562 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.499e-05/0.425, allocations: 0 / 0.562 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.425, allocations: 4 kB / 0.562 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.4253, allocations: 103.9 kB / 0.5621 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.817e-06/0.4253, allocations: 0 / 0.5621 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.197e-05/0.4253, allocations: 0 / 0.5621 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.4255, allocations: 91.59 kB / 0.5622 GB, free: 3.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.4255, allocations: 0 / 0.5622 GB, free: 3.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4255, allocations: 0 / 0.5622 GB, free: 3.957 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.4255, allocations: 0 / 0.5622 GB, free: 3.957 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.000427/0.4259, allocations: 368 kB / 0.5626 GB, free: 3.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.4259, allocations: 8.031 kB / 0.5626 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.426, allocations: 4.938 kB / 0.5626 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.4261, allocations: 160.4 kB / 0.5627 GB, free: 3.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.4261, allocations: 4.359 kB / 0.5627 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.367e-05/0.4261, allocations: 4.359 kB / 0.5628 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001036/0.4262, allocations: 34.2 kB / 0.5628 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4262, allocations: 192 / 0.5628 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.4263, allocations: 7.938 kB / 0.5628 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.4263, allocations: 0 / 0.5628 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.88e-05/0.4263, allocations: 0 / 0.5628 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001745/0.4265, allocations: 149.7 kB / 0.5629 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.279e-05/0.4265, allocations: 22.5 kB / 0.563 GB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.533e-05/0.4265, allocations: 4.859 kB / 0.563 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.4265, allocations: 7.875 kB / 0.563 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.176e-05/0.4266, allocations: 64.36 kB / 0.563 GB, free: 2.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.4266, allocations: 0 / 0.563 GB, free: 2.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001884/0.4268, allocations: 67.34 kB / 0.5631 GB, free: 2.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.4268, allocations: 81.09 kB / 0.5632 GB, free: 2.785 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.48e-05/0.4269, allocations: 93.81 kB / 0.5633 GB, free: 2.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.4269, allocations: 25.7 kB / 0.5633 GB, free: 2.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.909e-05/0.4269, allocations: 80.14 kB / 0.5634 GB, free: 2.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.427, allocations: 0 / 0.5634 GB, free: 2.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.427, allocations: 17.84 kB / 0.5634 GB, free: 2.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4272, allocations: 310.8 kB / 0.5637 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.4272, allocations: 0 / 0.5637 GB, free: 2.234 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.198e-05/0.4272, allocations: 11.94 kB / 0.5637 GB, free: 2.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.819e-05/0.4273, allocations: 56.27 kB / 0.5637 GB, free: 2.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4273, allocations: 4 kB / 0.5637 GB, free: 2.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.764e-05/0.4274, allocations: 59.39 kB / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/0.4274, allocations: 33.7 kB / 0.5638 GB, free: 2.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.4274, allocations: 4.094 kB / 0.5638 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.4274, allocations: 3.938 kB / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.4274, allocations: 0 / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.4274, allocations: 0 / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.487e-05/0.4274, allocations: 0 / 0.5638 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.4275, allocations: 4 kB / 0.5638 GB, free: 2.027 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.000117/0.4276, allocations: 143.5 kB / 0.564 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-06/0.4276, allocations: 0 / 0.564 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.319e-05/0.4276, allocations: 11 kB / 0.564 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.4276, allocations: 4 kB / 0.564 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4276, allocations: 4 kB / 0.564 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.4276, allocations: 0 / 0.564 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.4277, allocations: 145.7 kB / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.4277, allocations: 0 / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.4277, allocations: 0 / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.4277, allocations: 0 / 0.5641 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.4277, allocations: 7.938 kB / 0.5641 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.4277, allocations: 3.938 kB / 0.5641 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.4277, allocations: 0 / 0.5641 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.4279, allocations: 94.83 kB / 0.5642 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.323e-05/0.4279, allocations: 77.11 kB / 0.5643 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.4279, allocations: 3.938 kB / 0.5643 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-06/0.4279, allocations: 0 / 0.5643 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.445e-05/0.4279, allocations: 0 / 0.5643 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.4279, allocations: 4 kB / 0.5643 GB, free: 1.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.563e-05/0.428, allocations: 79.22 kB / 0.5644 GB, free: 1.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.428, allocations: 32 / 0.5644 GB, free: 1.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.4283, allocations: 47.8 kB / 0.5644 GB, free: 1.305 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.0006864/0.4289, allocations: 270.5 kB / 0.5647 GB, free: 1.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001045/0.429, allocations: 63.39 kB / 0.5648 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.429, allocations: 0 / 0.5648 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.369e-05/0.4291, allocations: 59.34 kB / 0.5648 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.4292, allocations: 4 kB / 0.5648 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002004/0.4294, allocations: 88.98 kB / 0.5649 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.4297, allocations: 0.6729 MB / 0.5656 GB, free: 128 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.023e-06/0.4297, allocations: 4.109 kB / 0.5656 GB, free: 124 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.126e-05/0.4297, allocations: 11.44 kB / 0.5656 GB, free: 112 kB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4297, allocations: 0 / 0.5656 GB, free: 112 kB / 398.1 MB Notification: Performance of Templates: time 0.003962/0.4337, allocations: 0.9758 MB / 0.5665 GB, free: 15.14 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.309283097740263]