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.001736/0.001736, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002099/0.002099, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.586/1.586, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.245/0.245, allocations: 44.94 MB / 358.8 MB, free: 6.043 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [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.002056/0.002056, allocations: 67.91 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3473, allocations: 65.47 MB / 0.5569 GB, free: 7.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001705/0.349, allocations: 491.3 kB / 0.5574 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008386/0.3498, allocations: 306.1 kB / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.066e-05/0.3499, allocations: 0 / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.838e-05/0.3499, allocations: 0 / 0.5577 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.543e-06/0.3499, allocations: 0 / 0.5577 GB, free: 6.73 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.000907/0.3508, allocations: 96.58 kB / 0.5578 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.582e-05/0.3508, allocations: 4 kB / 0.5578 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.572e-05/0.3509, allocations: 0 / 0.5578 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.746e-05/0.3509, allocations: 4 kB / 0.5578 GB, free: 6.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.747e-05/0.3509, allocations: 4 kB / 0.5578 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.089e-06/0.3509, allocations: 0 / 0.5578 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.3511, allocations: 107.9 kB / 0.5579 GB, free: 6.523 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.829e-06/0.3511, allocations: 7.922 kB / 0.5579 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.038e-05/0.3512, allocations: 0 / 0.5579 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.3514, allocations: 93.52 kB / 0.558 GB, free: 6.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3514, allocations: 0 / 0.558 GB, free: 6.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3514, allocations: 0 / 0.558 GB, free: 6.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.3514, allocations: 0 / 0.558 GB, free: 6.43 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.0003824/0.3518, allocations: 280 kB / 0.5583 GB, free: 6.117 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3518, allocations: 12.03 kB / 0.5583 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.332e-05/0.3518, allocations: 38.75 kB / 0.5583 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.417e-05/0.3519, allocations: 0.9375 kB / 0.5583 GB, free: 6.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.352, allocations: 106.5 kB / 0.5584 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.352, allocations: 384 / 0.5584 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.352, allocations: 4.375 kB / 0.5584 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.3521, allocations: 51.97 kB / 0.5585 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3521, allocations: 3.938 kB / 0.5585 GB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.3521, allocations: 4 kB / 0.5585 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.3521, allocations: 0 / 0.5585 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.511e-05/0.3522, allocations: 33.58 kB / 0.5585 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/0.3523, allocations: 128.8 kB / 0.5586 GB, free: 5.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.701e-05/0.3524, allocations: 40.28 kB / 0.5587 GB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.48e-05/0.3524, allocations: 34.66 kB / 0.5587 GB, free: 5.551 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-06/0.3524, allocations: 3.984 kB / 0.5587 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.705e-05/0.3525, allocations: 56.27 kB / 0.5588 GB, free: 5.477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3525, allocations: 0 / 0.5588 GB, free: 5.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002083/0.3527, allocations: 126.7 kB / 0.5589 GB, free: 5.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.3528, allocations: 77.11 kB / 0.559 GB, free: 5.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.499e-05/0.3528, allocations: 97.81 kB / 0.5591 GB, free: 5.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.3528, allocations: 25.7 kB / 0.5591 GB, free: 5.098 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.3529, allocations: 84.27 kB / 0.5592 GB, free: 5.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3529, allocations: 3.938 kB / 0.5592 GB, free: 5.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.3529, allocations: 17.72 kB / 0.5592 GB, free: 4.984 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3531, allocations: 310.8 kB / 0.5595 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.883e-05/0.3531, allocations: 29.69 kB / 0.5595 GB, free: 4.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.267e-05/0.3532, allocations: 29.7 kB / 0.5595 GB, free: 4.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.421e-05/0.3532, allocations: 56.27 kB / 0.5596 GB, free: 4.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3532, allocations: 4 kB / 0.5596 GB, free: 4.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.179e-05/0.3533, allocations: 93.03 kB / 0.5597 GB, free: 4.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.3533, allocations: 37.8 kB / 0.5597 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3534, allocations: 7.922 kB / 0.5597 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.3534, allocations: 0 / 0.5597 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.729e-06/0.3534, allocations: 4 kB / 0.5597 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.3534, allocations: 0 / 0.5597 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.653e-05/0.3534, allocations: 3.938 kB / 0.5597 GB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.3534, allocations: 4 kB / 0.5597 GB, free: 4.355 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.0001078/0.3535, allocations: 131.5 kB / 0.5599 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-06/0.3535, allocations: 0 / 0.5599 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.566e-05/0.3535, allocations: 14.92 kB / 0.5599 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3535, allocations: 4 kB / 0.5599 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3535, allocations: 0 / 0.5599 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3535, allocations: 0 / 0.5599 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.3536, allocations: 116.8 kB / 0.56 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3536, allocations: 0 / 0.56 GB, free: 4.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3536, allocations: 4 kB / 0.56 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.3537, allocations: 3.938 kB / 0.56 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.3537, allocations: 3.938 kB / 0.56 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.3537, allocations: 0 / 0.56 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.3537, allocations: 0 / 0.56 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/0.3538, allocations: 128.5 kB / 0.5601 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-06/0.3538, allocations: 0 / 0.5601 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.3538, allocations: 11.92 kB / 0.5601 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-06/0.3538, allocations: 0 / 0.5601 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.439e-05/0.3538, allocations: 0 / 0.5601 GB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.3538, allocations: 0 / 0.5601 GB, free: 3.855 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.783e-05/0.3539, allocations: 75.28 kB / 0.5602 GB, free: 3.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3539, allocations: 4 kB / 0.5602 GB, free: 3.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000265/0.3541, allocations: 31.94 kB / 0.5602 GB, free: 3.746 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.001098/0.3552, allocations: 0.8335 MB / 0.5611 GB, free: 2.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.3554, allocations: 110.8 kB / 0.5612 GB, free: 2.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3554, allocations: 0 / 0.5612 GB, free: 2.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.138e-05/0.3555, allocations: 85.09 kB / 0.5612 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.3556, allocations: 2.656 kB / 0.5612 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.356, allocations: 160.4 kB / 0.5614 GB, free: 2.496 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.465e-05/0.356, allocations: 51.36 kB / 0.5615 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.632e-06/0.356, allocations: 0 / 0.5615 GB, free: 2.426 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.774e-05/0.356, allocations: 11.44 kB / 0.5615 GB, free: 2.414 MB / 398.1 MB Notification: Performance of SimCode: time 3.9e-07/0.356, allocations: 0 / 0.5615 GB, free: 2.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.386, allocations: 2.354 MB / 0.5638 GB, free: 196 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.51, allocations: 12 kB / 0.5638 GB, free: 184 kB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_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_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: 14.5450552678667]