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.001613/0.001613, allocations: 115.5 kB / 17.13 MB, free: 5.891 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.002063/0.002063, allocations: 212.3 kB / 20.09 MB, free: 2.941 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.681/1.681, allocations: 207.6 MB / 230.5 MB, free: 4.043 MB / 174.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.3531/0.3531, allocations: 44.24 MB / 326.6 MB, free: 6.82 MB / 254.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestStreams",fmuType="me",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.002122/0.002122, allocations: 71.88 kB / 462.2 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2749, allocations: 61 MB / 0.5109 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001443/0.2763, allocations: 0.4915 MB / 0.5114 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007185/0.2771, allocations: 292.8 kB / 0.5117 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.638e-05/0.2771, allocations: 0 / 0.5117 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.2771, allocations: 0 / 0.5117 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.394e-06/0.2771, allocations: 7.938 kB / 0.5117 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008106/0.2779, allocations: 103.1 kB / 0.5118 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.702e-05/0.278, allocations: 5.266 kB / 0.5118 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.028e-05/0.278, allocations: 0.9375 kB / 0.5118 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.316e-05/0.278, allocations: 1 kB / 0.5118 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.29e-05/0.278, allocations: 5 kB / 0.5118 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-06/0.278, allocations: 0 / 0.5118 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.2782, allocations: 113.4 kB / 0.5119 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-06/0.2782, allocations: 1.406 kB / 0.5119 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.373e-05/0.2783, allocations: 0 / 0.5119 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.2784, allocations: 85.89 kB / 0.512 GB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2784, allocations: 9.188 kB / 0.512 GB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2784, allocations: 0 / 0.512 GB, free: 12.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.2784, allocations: 0 / 0.512 GB, free: 12.48 MB / 382.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.0002794/0.2787, allocations: 363.8 kB / 0.5123 GB, free: 12.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.2787, allocations: 13.23 kB / 0.5124 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.992e-05/0.2788, allocations: 31.91 kB / 0.5124 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.426e-05/0.2788, allocations: 4.891 kB / 0.5124 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.075e-05/0.2788, allocations: 164.3 kB / 0.5125 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.2789, allocations: 1.969 kB / 0.5125 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.2789, allocations: 4.375 kB / 0.5126 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.26e-05/0.279, allocations: 37 kB / 0.5126 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.279, allocations: 3.938 kB / 0.5126 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.279, allocations: 1.344 kB / 0.5126 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.279, allocations: 0 / 0.5126 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.703e-05/0.279, allocations: 1.188 kB / 0.5126 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.508e-05/0.2791, allocations: 143.1 kB / 0.5127 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.981e-05/0.2791, allocations: 19.83 kB / 0.5127 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.135e-05/0.2791, allocations: 10.14 kB / 0.5128 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.2791, allocations: 5.391 kB / 0.5128 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.2792, allocations: 61.33 kB / 0.5128 GB, free: 11.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.2792, allocations: 0 / 0.5128 GB, free: 11.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001548/0.2793, allocations: 62.56 kB / 0.5129 GB, free: 11.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/0.2794, allocations: 79.77 kB / 0.513 GB, free: 11.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.811e-05/0.2794, allocations: 89.86 kB / 0.513 GB, free: 11.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.945e-06/0.2794, allocations: 33.81 kB / 0.5131 GB, free: 11.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.187e-06/0.2794, allocations: 88.02 kB / 0.5132 GB, free: 11.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.2794, allocations: 4 kB / 0.5132 GB, free: 11.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.2794, allocations: 12.25 kB / 0.5132 GB, free: 11.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.504e-05/0.2795, allocations: 314.6 kB / 0.5135 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-06/0.2795, allocations: 0 / 0.5135 GB, free: 10.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-06/0.2795, allocations: 4 kB / 0.5135 GB, free: 10.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.616e-05/0.2795, allocations: 63.05 kB / 0.5135 GB, free: 10.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2795, allocations: 0 / 0.5135 GB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.002e-05/0.2796, allocations: 67.8 kB / 0.5136 GB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.2796, allocations: 33.17 kB / 0.5136 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.2796, allocations: 7.344 kB / 0.5136 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2796, allocations: 0 / 0.5136 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.2796, allocations: 0 / 0.5136 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.2796, allocations: 7.922 kB / 0.5137 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.398e-05/0.2796, allocations: 0 / 0.5137 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.2796, allocations: 0 / 0.5137 GB, free: 10.57 MB / 382.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 4.688e-05/0.2797, allocations: 142.2 kB / 0.5138 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.575e-06/0.2797, allocations: 2.656 kB / 0.5138 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.076e-05/0.2797, allocations: 11.05 kB / 0.5138 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2797, allocations: 0 / 0.5138 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2797, allocations: 0 / 0.5138 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.2797, allocations: 0 / 0.5138 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.927e-05/0.2798, allocations: 148.5 kB / 0.5139 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.2798, allocations: 0 / 0.5139 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.2798, allocations: 3.984 kB / 0.5139 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.2798, allocations: 0 / 0.5139 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.2798, allocations: 11.62 kB / 0.514 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.2798, allocations: 0 / 0.514 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2798, allocations: 0 / 0.514 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.538e-05/0.2798, allocations: 86.92 kB / 0.514 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.565e-05/0.2798, allocations: 80.98 kB / 0.5141 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.2799, allocations: 3.938 kB / 0.5141 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/0.2799, allocations: 3.938 kB / 0.5141 GB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.2799, allocations: 4.031 kB / 0.5141 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.2799, allocations: 3.625 kB / 0.5141 GB, free: 9.988 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.59e-05/0.2799, allocations: 75.28 kB / 0.5142 GB, free: 9.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 4e-08/0.2799, allocations: 0 / 0.5142 GB, free: 9.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000249/0.2802, allocations: 34.89 kB / 0.5142 GB, free: 9.902 MB / 382.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.0007685/0.2809, allocations: 0.7859 MB / 0.515 GB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.381e-05/0.281, allocations: 63.78 kB / 0.5151 GB, free: 9.109 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.281, allocations: 0 / 0.5151 GB, free: 9.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.012e-05/0.281, allocations: 58.95 kB / 0.5151 GB, free: 9.043 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.2812, allocations: 4.938 kB / 0.5151 GB, free: 9.043 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.2815, allocations: 138.6 kB / 0.5153 GB, free: 8.883 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.2816, allocations: 0.6703 MB / 0.5159 GB, free: 8.188 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.574e-06/0.2816, allocations: 3.984 kB / 0.5159 GB, free: 8.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.121e-05/0.2816, allocations: 8.625 kB / 0.5159 GB, free: 8.176 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2816, allocations: 0 / 0.5159 GB, free: 8.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.3051, allocations: 1.824 MB / 0.5177 GB, free: 7.023 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.933/8.238, allocations: 2.719 kB / 0.5177 GB, free: 7.023 MB / 382.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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: 11.309465826998348]