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.001652/0.001652, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002078/0.002078, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.501/1.501, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.2239/0.2239, allocations: 44.91 MB / 359.6 MB, free: 6.305 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStreams",fmuType="cs",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.002118/0.002118, allocations: 67.89 kB / 0.4938 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.3, allocations: 65.48 MB / 0.5578 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001588/0.3016, allocations: 481.6 kB / 0.5582 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007552/0.3024, allocations: 315.2 kB / 0.5585 GB, free: 6.945 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.641e-05/0.3024, allocations: 4 kB / 0.5585 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.3024, allocations: 1.094 kB / 0.5585 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.621e-06/0.3024, allocations: 0 / 0.5585 GB, free: 6.941 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.0008659/0.3033, allocations: 100.4 kB / 0.5586 GB, free: 6.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.488e-05/0.3033, allocations: 5.469 kB / 0.5586 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.224e-05/0.3033, allocations: 1.531 kB / 0.5586 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.367e-05/0.3034, allocations: 0 / 0.5586 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.548e-05/0.3034, allocations: 1.188 kB / 0.5586 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.3034, allocations: 0 / 0.5586 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002116/0.3036, allocations: 110.4 kB / 0.5587 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-06/0.3036, allocations: 0 / 0.5587 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.914e-05/0.3036, allocations: 11.98 kB / 0.5588 GB, free: 6.785 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.3038, allocations: 89.58 kB / 0.5588 GB, free: 6.703 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3038, allocations: 0 / 0.5588 GB, free: 6.703 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3038, allocations: 3.938 kB / 0.5588 GB, free: 6.699 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.3038, allocations: 0 / 0.5588 GB, free: 6.699 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.0003144/0.3041, allocations: 284 kB / 0.5591 GB, free: 6.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3042, allocations: 8.031 kB / 0.5591 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.318e-05/0.3042, allocations: 192 / 0.5591 GB, free: 6.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.809e-05/0.3042, allocations: 38.73 kB / 0.5592 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.48e-05/0.3042, allocations: 8.875 kB / 0.5592 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.882e-05/0.3043, allocations: 102.5 kB / 0.5593 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-06/0.3043, allocations: 384 / 0.5593 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.45e-06/0.3043, allocations: 384 / 0.5593 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.998e-05/0.3044, allocations: 38.02 kB / 0.5593 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.3044, allocations: 0 / 0.5593 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.3044, allocations: 0 / 0.5593 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3044, allocations: 0 / 0.5593 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.884e-05/0.3044, allocations: 7.938 kB / 0.5593 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.3046, allocations: 124.7 kB / 0.5594 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.859e-05/0.3046, allocations: 14.58 kB / 0.5594 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.52e-05/0.3046, allocations: 8.953 kB / 0.5595 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.3046, allocations: 4 kB / 0.5595 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.3047, allocations: 60.2 kB / 0.5595 GB, free: 5.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3047, allocations: 0 / 0.5595 GB, free: 5.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001675/0.3049, allocations: 67.45 kB / 0.5596 GB, free: 5.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.3049, allocations: 81.11 kB / 0.5597 GB, free: 5.691 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.235e-05/0.305, allocations: 93.81 kB / 0.5597 GB, free: 5.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.305, allocations: 29.7 kB / 0.5598 GB, free: 5.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.528e-05/0.305, allocations: 80.14 kB / 0.5599 GB, free: 5.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.305, allocations: 7.938 kB / 0.5599 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.902e-05/0.3051, allocations: 9.719 kB / 0.5599 GB, free: 5.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3052, allocations: 314.8 kB / 0.5602 GB, free: 5.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.112e-05/0.3052, allocations: 4 kB / 0.5602 GB, free: 5.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.625e-06/0.3052, allocations: 3.984 kB / 0.5602 GB, free: 5.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.791e-05/0.3053, allocations: 60.27 kB / 0.5602 GB, free: 5.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3053, allocations: 0 / 0.5602 GB, free: 5.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.237e-05/0.3054, allocations: 71.33 kB / 0.5603 GB, free: 4.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.3054, allocations: 33.64 kB / 0.5603 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.3054, allocations: 0 / 0.5603 GB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3054, allocations: 3.984 kB / 0.5603 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.3054, allocations: 0 / 0.5603 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.3054, allocations: 4.094 kB / 0.5603 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.3054, allocations: 4 kB / 0.5603 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.3054, allocations: 0 / 0.5603 GB, free: 4.918 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.789e-05/0.3055, allocations: 131.5 kB / 0.5605 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.172e-05/0.3055, allocations: 7.938 kB / 0.5605 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.03e-05/0.3056, allocations: 3 kB / 0.5605 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.3056, allocations: 0 / 0.5605 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3056, allocations: 0 / 0.5605 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.3056, allocations: 0 / 0.5605 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.461e-05/0.3057, allocations: 128.8 kB / 0.5606 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3057, allocations: 3.938 kB / 0.5606 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.435e-06/0.3057, allocations: 4 kB / 0.5606 GB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.3057, allocations: 3.938 kB / 0.5606 GB, free: 4.582 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/0.3057, allocations: 3.938 kB / 0.5606 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3057, allocations: 0 / 0.5606 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3057, allocations: 0 / 0.5606 GB, free: 4.578 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.3058, allocations: 94.77 kB / 0.5607 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-06/0.3058, allocations: 4.031 kB / 0.5607 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.3058, allocations: 7.938 kB / 0.5607 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.318e-06/0.3058, allocations: 0 / 0.5607 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-06/0.3058, allocations: 0 / 0.5607 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3058, allocations: 0 / 0.5607 GB, free: 4.449 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.317e-05/0.3059, allocations: 75.28 kB / 0.5608 GB, free: 4.375 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3059, allocations: 0 / 0.5608 GB, free: 4.375 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002485/0.3061, allocations: 35.92 kB / 0.5608 GB, free: 4.34 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.0009279/0.307, allocations: 0.7982 MB / 0.5616 GB, free: 3.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.618e-05/0.3071, allocations: 67.39 kB / 0.5617 GB, free: 3.484 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3071, allocations: 0 / 0.5617 GB, free: 3.484 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.767e-05/0.3072, allocations: 55.41 kB / 0.5617 GB, free: 3.418 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.3073, allocations: 0 / 0.5617 GB, free: 3.418 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003087/0.3076, allocations: 130.6 kB / 0.5618 GB, free: 3.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.3079, allocations: 0.669 MB / 0.5625 GB, free: 2.555 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.16e-06/0.3079, allocations: 0 / 0.5625 GB, free: 2.555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.525e-05/0.3079, allocations: 7.438 kB / 0.5625 GB, free: 2.547 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3079, allocations: 4.125 kB / 0.5625 GB, free: 2.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02029/0.3282, allocations: 1.975 MB / 0.5644 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.82, allocations: 23.61 kB / 0.5645 GB, free: 0.6914 MB / 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.758416307973675]