Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001458/0.001458, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001638/0.001638, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.504/1.504, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2302/0.2302, allocations: 46.93 MB / 357.1 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 63.91 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1173, allocations: 66 MB / 0.5554 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001685/0.119, allocations: 481 kB / 0.5558 GB, free: 5.402 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007791/0.1198, allocations: 311.7 kB / 0.5561 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.065e-05/0.1198, allocations: 0 / 0.5561 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.062e-05/0.1198, allocations: 0 / 0.5561 GB, free: 5.098 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.1198, allocations: 0 / 0.5561 GB, free: 5.098 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.0008748/0.1207, allocations: 97.95 kB / 0.5562 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.85e-05/0.1207, allocations: 0 / 0.5562 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.802e-05/0.1207, allocations: 4 kB / 0.5562 GB, free: 5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.42e-05/0.1208, allocations: 0 / 0.5562 GB, free: 5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.37e-05/0.1208, allocations: 3.984 kB / 0.5562 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.1208, allocations: 0 / 0.5562 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.121, allocations: 111.9 kB / 0.5563 GB, free: 4.887 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.666e-06/0.121, allocations: 7.984 kB / 0.5563 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.596e-05/0.121, allocations: 0 / 0.5563 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000177/0.1212, allocations: 83.75 kB / 0.5564 GB, free: 4.797 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.1212, allocations: 4 kB / 0.5564 GB, free: 4.793 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1212, allocations: 0 / 0.5564 GB, free: 4.793 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1212, allocations: 3.938 kB / 0.5564 GB, free: 4.789 MB / 414.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.0003918/0.1216, allocations: 357.1 kB / 0.5568 GB, free: 4.383 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1217, allocations: 8.031 kB / 0.5568 GB, free: 4.375 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.1217, allocations: 34.75 kB / 0.5568 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.21e-05/0.1217, allocations: 0.9375 kB / 0.5568 GB, free: 4.332 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.1218, allocations: 164.4 kB / 0.5569 GB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.1218, allocations: 384 / 0.5569 GB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.1219, allocations: 384 / 0.5569 GB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.202e-05/0.1219, allocations: 38.25 kB / 0.557 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.699e-06/0.122, allocations: 3.938 kB / 0.557 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.122, allocations: 0 / 0.557 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.122, allocations: 0 / 0.557 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.725e-05/0.122, allocations: 3.938 kB / 0.557 GB, free: 4.082 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.1221, allocations: 153.6 kB / 0.5571 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.322e-05/0.1222, allocations: 18.52 kB / 0.5572 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.1222, allocations: 6.516 kB / 0.5572 GB, free: 3.848 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.1222, allocations: 8.078 kB / 0.5572 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.538e-05/0.1223, allocations: 60.27 kB / 0.5572 GB, free: 3.766 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1223, allocations: 0 / 0.5572 GB, free: 3.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001704/0.1225, allocations: 71.27 kB / 0.5573 GB, free: 3.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/0.1225, allocations: 81.23 kB / 0.5574 GB, free: 3.586 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.874e-05/0.1226, allocations: 93.81 kB / 0.5575 GB, free: 3.484 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.1226, allocations: 29.69 kB / 0.5575 GB, free: 3.449 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.515e-05/0.1226, allocations: 80.14 kB / 0.5576 GB, free: 3.367 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.1226, allocations: 4 kB / 0.5576 GB, free: 3.363 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.1227, allocations: 13.72 kB / 0.5576 GB, free: 3.344 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1228, allocations: 310.8 kB / 0.5579 GB, free: 3.031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-06/0.1228, allocations: 0 / 0.5579 GB, free: 3.031 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.774e-06/0.1228, allocations: 8 kB / 0.5579 GB, free: 3.023 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.757e-05/0.1229, allocations: 60.27 kB / 0.5579 GB, free: 2.949 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1229, allocations: 0 / 0.5579 GB, free: 2.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.961e-05/0.123, allocations: 67.33 kB / 0.558 GB, free: 2.871 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.575e-05/0.123, allocations: 33.7 kB / 0.558 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.123, allocations: 3.938 kB / 0.558 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.123, allocations: 0 / 0.558 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.42e-07/0.123, allocations: 0 / 0.558 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.123, allocations: 3.984 kB / 0.5581 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.47e-05/0.1231, allocations: 4.094 kB / 0.5581 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.1231, allocations: 4 kB / 0.5581 GB, free: 2.816 MB / 414.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.531e-05/0.1232, allocations: 137.7 kB / 0.5582 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.225e-06/0.1232, allocations: 0 / 0.5582 GB, free: 2.668 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.061e-05/0.1232, allocations: 7.062 kB / 0.5582 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1232, allocations: 4 kB / 0.5582 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1232, allocations: 4 kB / 0.5582 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1232, allocations: 0 / 0.5582 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.1233, allocations: 149.6 kB / 0.5583 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1233, allocations: 4 kB / 0.5584 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.545e-06/0.1233, allocations: 3.984 kB / 0.5584 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1233, allocations: 3.938 kB / 0.5584 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.1233, allocations: 7.938 kB / 0.5584 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1233, allocations: 0 / 0.5584 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1233, allocations: 0 / 0.5584 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001186/0.1235, allocations: 94.77 kB / 0.5585 GB, free: 2.324 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.1235, allocations: 81.12 kB / 0.5585 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.1235, allocations: 7.938 kB / 0.5585 GB, free: 2.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-06/0.1235, allocations: 0 / 0.5585 GB, free: 2.219 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.286e-05/0.1235, allocations: 3.938 kB / 0.5585 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.1235, allocations: 4 kB / 0.5585 GB, free: 2.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.228e-05/0.1236, allocations: 75.28 kB / 0.5586 GB, free: 2.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1236, allocations: 0 / 0.5586 GB, free: 2.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000255/0.1238, allocations: 35.92 kB / 0.5587 GB, free: 2.102 MB / 414.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.0009784/0.1248, allocations: 0.7756 MB / 0.5594 GB, free: 1.344 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001084/0.1249, allocations: 67.34 kB / 0.5595 GB, free: 1.266 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1249, allocations: 0 / 0.5595 GB, free: 1.266 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.157e-05/0.125, allocations: 59.39 kB / 0.5595 GB, free: 1.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.1251, allocations: 3.938 kB / 0.5595 GB, free: 1.191 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.1254, allocations: 126.6 kB / 0.5597 GB, free: 1.027 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.1257, allocations: 0.669 MB / 0.5603 GB, free: 340 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.1258, allocations: 0 / 0.5603 GB, free: 340 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.471e-05/0.1258, allocations: 7.438 kB / 0.5603 GB, free: 332 kB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1258, allocations: 0 / 0.5603 GB, free: 332 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02422/0.15, allocations: 1.835 MB / 0.5621 GB, free: 14.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.079/8.229, allocations: 0 / 0.5621 GB, free: 14.56 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 11.085698032053187]