Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.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.001343/0.001343, allocations: 114.2 kB / 19.69 MB, free: 2.188 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.001464/0.001464, allocations: 216 kB / 23 MB, free: 5.004 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.395/1.395, allocations: 207.6 MB / 233.8 MB, free: 10 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.2098/0.2098, allocations: 44.24 MB / 330.3 MB, free: 9.516 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.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",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.002146/0.002146, allocations: 71.84 kB / 467.5 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1187, allocations: 61.05 MB / 0.5161 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002684/0.1214, allocations: 1.456 MB / 0.5176 GB, free: 5.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000824/0.1222, allocations: 467.8 kB / 0.518 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.798e-05/0.1222, allocations: 4 kB / 0.518 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.989e-05/0.1222, allocations: 7.875 kB / 0.518 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.723e-05/0.1223, allocations: 3.938 kB / 0.518 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.1225, allocations: 23.97 kB / 0.518 GB, free: 5.379 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.146e-05/0.1226, allocations: 35.8 kB / 0.5181 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.89e-05/0.1227, allocations: 8.281 kB / 0.5181 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.016e-05/0.1227, allocations: 15.98 kB / 0.5181 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.92e-05/0.1228, allocations: 15.92 kB / 0.5181 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.1228, allocations: 4 kB / 0.5181 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.366e-06/0.1228, allocations: 0 / 0.5181 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.295e-05/0.1229, allocations: 15.92 kB / 0.5181 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.42e-05/0.1229, allocations: 11.92 kB / 0.5181 GB, free: 5.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.516e-05/0.123, allocations: 31.84 kB / 0.5182 GB, free: 5.242 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.123, allocations: 8 kB / 0.5182 GB, free: 5.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.123, allocations: 0 / 0.5182 GB, free: 5.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.123, allocations: 0 / 0.5182 GB, free: 5.234 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004849/0.1235, allocations: 266.3 kB / 0.5184 GB, free: 4.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.1235, allocations: 8.031 kB / 0.5184 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.1236, allocations: 38.69 kB / 0.5185 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.044e-05/0.1236, allocations: 8.875 kB / 0.5185 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.1237, allocations: 110.5 kB / 0.5186 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.1237, allocations: 4.375 kB / 0.5186 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.1237, allocations: 8.375 kB / 0.5186 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.1239, allocations: 59.52 kB / 0.5187 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.1239, allocations: 0 / 0.5187 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.1239, allocations: 0 / 0.5187 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1239, allocations: 4 kB / 0.5187 GB, free: 4.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.843e-05/0.124, allocations: 19.92 kB / 0.5187 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003997/0.1244, allocations: 239.9 kB / 0.5189 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.391e-05/0.1245, allocations: 30.56 kB / 0.5189 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.889e-05/0.1246, allocations: 16.91 kB / 0.519 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.1246, allocations: 0 / 0.519 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.1246, allocations: 34.56 kB / 0.519 GB, free: 4.266 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.1246, allocations: 4 kB / 0.519 GB, free: 4.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002401/0.1248, allocations: 65.56 kB / 0.5191 GB, free: 4.191 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.1249, allocations: 81.11 kB / 0.5191 GB, free: 4.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.686e-05/0.125, allocations: 109.8 kB / 0.5192 GB, free: 3.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.125, allocations: 29.7 kB / 0.5193 GB, free: 3.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.663e-05/0.1251, allocations: 88.14 kB / 0.5194 GB, free: 3.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.1251, allocations: 3.953 kB / 0.5194 GB, free: 3.848 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.1251, allocations: 17.84 kB / 0.5194 GB, free: 3.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1253, allocations: 322.8 kB / 0.5197 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.853e-05/0.1253, allocations: 12 kB / 0.5197 GB, free: 3.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.356e-05/0.1254, allocations: 29.64 kB / 0.5197 GB, free: 3.453 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.658e-05/0.1254, allocations: 28.78 kB / 0.5198 GB, free: 3.422 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1254, allocations: 0 / 0.5198 GB, free: 3.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000121/0.1256, allocations: 57.7 kB / 0.5198 GB, free: 3.359 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1256, allocations: 8 kB / 0.5198 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1256, allocations: 0 / 0.5198 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1256, allocations: 0 / 0.5198 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.787e-05/0.1257, allocations: 4 kB / 0.5198 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.1257, allocations: 320 / 0.5198 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.605e-05/0.1257, allocations: 11.98 kB / 0.5198 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.1257, allocations: 0 / 0.5198 GB, free: 3.336 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: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.685e-05/0.1258, allocations: 113.8 kB / 0.5199 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.1259, allocations: 11.95 kB / 0.5199 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.417e-05/0.1259, allocations: 7.75 kB / 0.52 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.1259, allocations: 3.984 kB / 0.52 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1259, allocations: 8 kB / 0.52 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1259, allocations: 0 / 0.52 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.126, allocations: 140.6 kB / 0.5201 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1261, allocations: 0 / 0.5201 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-05/0.1261, allocations: 4 kB / 0.5201 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.1261, allocations: 0 / 0.5201 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.634e-06/0.1261, allocations: 0 / 0.5201 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1261, allocations: 4 kB / 0.5201 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1261, allocations: 7.984 kB / 0.5201 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.1263, allocations: 151.5 kB / 0.5203 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-06/0.1263, allocations: 3.953 kB / 0.5203 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.1263, allocations: 4 kB / 0.5203 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.105e-05/0.1264, allocations: 7.984 kB / 0.5203 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.1264, allocations: 12.02 kB / 0.5203 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.1264, allocations: 3.938 kB / 0.5203 GB, free: 2.789 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.347e-05/0.1265, allocations: 87.27 kB / 0.5204 GB, free: 2.703 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1265, allocations: 0 / 0.5204 GB, free: 2.703 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002058/0.1267, allocations: 8 kB / 0.5204 GB, free: 2.695 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 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0004912/0.1272, allocations: 0.6812 MB / 0.521 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000149/0.1273, allocations: 27.98 kB / 0.5211 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1273, allocations: 0 / 0.5211 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.771e-05/0.1274, allocations: 15.92 kB / 0.5211 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.1276, allocations: 4 kB / 0.5211 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004446/0.128, allocations: 164.3 kB / 0.5212 GB, free: 1.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.1283, allocations: 0.6807 MB / 0.5219 GB, free: 1.035 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.921e-05/0.1284, allocations: 4 kB / 0.5219 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/0.1284, allocations: 15.42 kB / 0.5219 GB, free: 1.016 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1284, allocations: 0 / 0.5219 GB, free: 1.016 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.1554, allocations: 1.62 MB / 0.5235 GB, free: 15.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.86, allocations: 7.344 kB / 0.5235 GB, free: 15.39 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598325 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable hysteresis.y in file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.74947020199761]