Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002834/0.002834, allocations: 208.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.626/1.626, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2289/0.2289, allocations: 44.93 MB / 358.8 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002252/0.002252, allocations: 63.91 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3301, allocations: 65.47 MB / 0.5574 GB, free: 7.473 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002062/0.3321, allocations: 496.1 kB / 0.5579 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.3332, allocations: 297.5 kB / 0.5582 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.508e-05/0.3332, allocations: 7.938 kB / 0.5582 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.242e-05/0.3332, allocations: 0 / 0.5582 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.3332, allocations: 0 / 0.5582 GB, free: 6.691 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.001053/0.3343, allocations: 99.66 kB / 0.5583 GB, free: 6.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.152e-05/0.3343, allocations: 4 kB / 0.5583 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.836e-05/0.3344, allocations: 0 / 0.5583 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.162e-05/0.3344, allocations: 7.969 kB / 0.5583 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.118e-05/0.3344, allocations: 0 / 0.5583 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.602e-06/0.3344, allocations: 0 / 0.5583 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002781/0.3347, allocations: 107.9 kB / 0.5584 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.3347, allocations: 0 / 0.5584 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.413e-05/0.3347, allocations: 8 kB / 0.5584 GB, free: 6.469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.335, allocations: 87.59 kB / 0.5585 GB, free: 6.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.335, allocations: 0 / 0.5585 GB, free: 6.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.335, allocations: 0 / 0.5585 GB, free: 6.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.335, allocations: 7.938 kB / 0.5585 GB, free: 6.379 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.0003926/0.3354, allocations: 286.5 kB / 0.5588 GB, free: 6.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.3354, allocations: 8.031 kB / 0.5588 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.291e-05/0.3355, allocations: 0.9375 kB / 0.5588 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.3356, allocations: 102.5 kB / 0.5589 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.3356, allocations: 4.375 kB / 0.5589 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.3356, allocations: 384 / 0.5589 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.3357, allocations: 67.94 kB / 0.5589 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3357, allocations: 192 / 0.5589 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3357, allocations: 3.938 kB / 0.559 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3357, allocations: 0 / 0.559 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.104e-05/0.3358, allocations: 29.7 kB / 0.559 GB, free: 5.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001465/0.3359, allocations: 97.33 kB / 0.5591 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.025e-05/0.336, allocations: 44.22 kB / 0.5591 GB, free: 5.629 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.771e-05/0.336, allocations: 34.66 kB / 0.5591 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.3361, allocations: 0 / 0.5591 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.824e-05/0.3361, allocations: 64.25 kB / 0.5592 GB, free: 5.508 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.3361, allocations: 4 kB / 0.5592 GB, free: 5.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002291/0.3363, allocations: 118.7 kB / 0.5593 GB, free: 5.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.3364, allocations: 81.11 kB / 0.5594 GB, free: 5.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.143e-05/0.3365, allocations: 97.8 kB / 0.5595 GB, free: 5.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.3365, allocations: 29.64 kB / 0.5595 GB, free: 5.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.3366, allocations: 80.14 kB / 0.5596 GB, free: 5.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.3366, allocations: 4 kB / 0.5596 GB, free: 5.039 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/0.3366, allocations: 13.72 kB / 0.5596 GB, free: 5.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.3368, allocations: 310.8 kB / 0.5599 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.008e-05/0.3368, allocations: 25.7 kB / 0.5599 GB, free: 4.676 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.477e-05/0.3369, allocations: 33.83 kB / 0.56 GB, free: 4.637 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.147e-05/0.3369, allocations: 68.25 kB / 0.56 GB, free: 4.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3369, allocations: 0 / 0.56 GB, free: 4.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001109/0.3371, allocations: 92.98 kB / 0.5601 GB, free: 4.445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.3371, allocations: 29.7 kB / 0.5602 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3371, allocations: 0 / 0.5602 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3371, allocations: 0 / 0.5602 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.727e-06/0.3371, allocations: 3.938 kB / 0.5602 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.3371, allocations: 0 / 0.5602 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.35e-05/0.3371, allocations: 8.078 kB / 0.5602 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.3371, allocations: 4 kB / 0.5602 GB, free: 4.395 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.0001107/0.3373, allocations: 131.5 kB / 0.5603 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.3373, allocations: 8 kB / 0.5603 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.273e-05/0.3373, allocations: 3 kB / 0.5603 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3373, allocations: 3.938 kB / 0.5603 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3373, allocations: 0 / 0.5603 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3373, allocations: 0 / 0.5603 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.726e-05/0.3374, allocations: 101.3 kB / 0.5604 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3374, allocations: 4 kB / 0.5604 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.3374, allocations: 0 / 0.5604 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3374, allocations: 4 kB / 0.5604 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.3374, allocations: 0 / 0.5604 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3374, allocations: 0 / 0.5604 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3374, allocations: 3.938 kB / 0.5604 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.3375, allocations: 120.5 kB / 0.5605 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.078e-05/0.3376, allocations: 4 kB / 0.5605 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.3376, allocations: 0 / 0.5605 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.136e-05/0.3376, allocations: 0 / 0.5605 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.309e-05/0.3376, allocations: 3.938 kB / 0.5605 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.3376, allocations: 0 / 0.5605 GB, free: 3.938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.707e-05/0.3376, allocations: 87.25 kB / 0.5606 GB, free: 3.852 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3376, allocations: 0 / 0.5606 GB, free: 3.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000347/0.338, allocations: 39.86 kB / 0.5607 GB, free: 3.812 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.0008255/0.3388, allocations: 270 kB / 0.5609 GB, free: 3.605 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.339, allocations: 126.8 kB / 0.561 GB, free: 3.457 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.339, allocations: 0 / 0.561 GB, free: 3.457 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.645e-05/0.3391, allocations: 81.11 kB / 0.5611 GB, free: 3.359 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001666/0.3392, allocations: 0 / 0.5611 GB, free: 3.359 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002423/0.3395, allocations: 118.6 kB / 0.5612 GB, free: 3.211 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.699e-05/0.3395, allocations: 55.36 kB / 0.5613 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.881e-06/0.3395, allocations: 0 / 0.5613 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.656e-05/0.3396, allocations: 7.438 kB / 0.5613 GB, free: 3.129 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3396, allocations: 0 / 0.5613 GB, free: 3.129 MB / 398.1 MB Notification: Performance of Templates: time 0.005381/0.3449, allocations: 0.9813 MB / 0.5622 GB, free: 2.152 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.224345514550805]