Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001363/0.001363, allocations: 97.91 kB / 20.48 MB, free: 1.367 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.00151/0.00151, allocations: 214.8 kB / 23.78 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 207.7 MB / 234.6 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2174/0.2174, allocations: 44.26 MB / 331.1 MB, free: 9.402 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002406/0.002406, allocations: 67.91 kB / 468.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1205, allocations: 61.05 MB / 0.5169 GB, free: 7.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001929/0.1225, allocations: 0.4911 MB / 0.5174 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008844/0.1234, allocations: 295.2 kB / 0.5177 GB, free: 6.438 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.931e-05/0.1234, allocations: 4 kB / 0.5177 GB, free: 6.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.384e-05/0.1234, allocations: 0 / 0.5177 GB, free: 6.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.043e-06/0.1234, allocations: 0 / 0.5177 GB, free: 6.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009416/0.1243, allocations: 93.58 kB / 0.5177 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.217e-05/0.1244, allocations: 8 kB / 0.5178 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.88e-05/0.1244, allocations: 4 kB / 0.5178 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.542e-05/0.1245, allocations: 3.938 kB / 0.5178 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.251e-05/0.1245, allocations: 0 / 0.5178 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.52e-06/0.1245, allocations: 0 / 0.5178 GB, free: 6.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002343/0.1247, allocations: 111.8 kB / 0.5179 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.117e-05/0.1247, allocations: 3.984 kB / 0.5179 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.1248, allocations: 4 kB / 0.5179 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.125, allocations: 91.75 kB / 0.518 GB, free: 6.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.125, allocations: 0 / 0.518 GB, free: 6.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.125, allocations: 3.938 kB / 0.518 GB, free: 6.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.125, allocations: 4 kB / 0.518 GB, free: 6.113 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.0003758/0.1254, allocations: 287.9 kB / 0.5182 GB, free: 5.793 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.1254, allocations: 8.031 kB / 0.5183 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.28e-05/0.1254, allocations: 192 / 0.5183 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.1255, allocations: 38.73 kB / 0.5183 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.739e-05/0.1255, allocations: 4.891 kB / 0.5183 GB, free: 5.734 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.267e-05/0.1256, allocations: 110.5 kB / 0.5184 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.1256, allocations: 384 / 0.5184 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.1256, allocations: 384 / 0.5184 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.1257, allocations: 59.72 kB / 0.5185 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.1257, allocations: 0 / 0.5185 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.1257, allocations: 0 / 0.5185 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.1257, allocations: 0 / 0.5185 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.609e-05/0.1258, allocations: 37.62 kB / 0.5185 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.1259, allocations: 116.8 kB / 0.5186 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.47e-05/0.126, allocations: 44.31 kB / 0.5186 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.725e-05/0.126, allocations: 31.67 kB / 0.5187 GB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.126, allocations: 4 kB / 0.5187 GB, free: 5.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.752e-05/0.1261, allocations: 64.27 kB / 0.5187 GB, free: 5.152 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.463e-06/0.1261, allocations: 0 / 0.5187 GB, free: 5.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002754/0.1264, allocations: 122.7 kB / 0.5189 GB, free: 5.008 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.988e-05/0.1264, allocations: 77.11 kB / 0.5189 GB, free: 4.914 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.105e-05/0.1265, allocations: 89.86 kB / 0.519 GB, free: 4.816 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.1265, allocations: 25.7 kB / 0.519 GB, free: 4.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.528e-05/0.1265, allocations: 80.14 kB / 0.5191 GB, free: 4.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.1265, allocations: 4 kB / 0.5191 GB, free: 4.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.1266, allocations: 17.83 kB / 0.5191 GB, free: 4.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1267, allocations: 314.8 kB / 0.5194 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.582e-05/0.1267, allocations: 29.7 kB / 0.5195 GB, free: 4.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.187e-05/0.1268, allocations: 29.64 kB / 0.5195 GB, free: 4.289 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.743e-05/0.1268, allocations: 60.27 kB / 0.5196 GB, free: 4.215 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1268, allocations: 0 / 0.5196 GB, free: 4.215 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.968e-05/0.1269, allocations: 97.03 kB / 0.5196 GB, free: 4.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.127, allocations: 33.64 kB / 0.5197 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.127, allocations: 0 / 0.5197 GB, free: 4.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.127, allocations: 4 kB / 0.5197 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.127, allocations: 8.031 kB / 0.5197 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.127, allocations: 4 kB / 0.5197 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.801e-05/0.127, allocations: 0 / 0.5197 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.127, allocations: 0 / 0.5197 GB, free: 4.047 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.0001114/0.1272, allocations: 139.5 kB / 0.5198 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.1272, allocations: 7.922 kB / 0.5198 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.938e-06/0.1272, allocations: 3 kB / 0.5198 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1272, allocations: 0 / 0.5198 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1272, allocations: 0 / 0.5198 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1272, allocations: 0 / 0.5198 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.1273, allocations: 128.8 kB / 0.52 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1273, allocations: 0 / 0.52 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.765e-06/0.1273, allocations: 3.984 kB / 0.52 GB, free: 3.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1273, allocations: 3.938 kB / 0.52 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.1273, allocations: 4 kB / 0.52 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1273, allocations: 0 / 0.52 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1273, allocations: 0 / 0.52 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001418/0.1275, allocations: 120.5 kB / 0.5201 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.21e-06/0.1275, allocations: 0 / 0.5201 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.1275, allocations: 3.938 kB / 0.5201 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.1275, allocations: 8.031 kB / 0.5201 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.1275, allocations: 0 / 0.5201 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.1275, allocations: 0 / 0.5201 GB, free: 3.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.463e-05/0.1275, allocations: 75.28 kB / 0.5202 GB, free: 3.473 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1275, allocations: 0 / 0.5202 GB, free: 3.473 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002687/0.1278, allocations: 39.86 kB / 0.5202 GB, free: 3.434 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.001143/0.129, allocations: 0.8399 MB / 0.521 GB, free: 2.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001569/0.1291, allocations: 114.8 kB / 0.5211 GB, free: 2.441 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1291, allocations: 4 kB / 0.5211 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.09e-05/0.1292, allocations: 77.11 kB / 0.5212 GB, free: 2.344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.1293, allocations: 4 kB / 0.5212 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000423/0.1297, allocations: 148.2 kB / 0.5214 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.131e-05/0.1298, allocations: 63.33 kB / 0.5214 GB, free: 2.066 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.915e-06/0.1298, allocations: 4 kB / 0.5214 GB, free: 2.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.958e-05/0.1298, allocations: 11.44 kB / 0.5214 GB, free: 2.051 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1298, allocations: 0 / 0.5214 GB, free: 2.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02234/0.1522, allocations: 2.003 MB / 0.5234 GB, free: 40 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.74, allocations: 7.984 kB / 0.5234 GB, free: 32 kB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.676411437918432]