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.001318/0.001318, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001572/0.001572, allocations: 219 kB / 22.99 MB, free: 4.977 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.513/1.513, allocations: 207.7 MB / 233.8 MB, free: 9.797 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.2411/0.2411, allocations: 44.26 MB / 330.3 MB, free: 9.301 MB / 270.1 MB " [Timeout remaining time 179] 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.002568/0.002568, allocations: 80.45 kB / 467.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1188, allocations: 61.05 MB / 0.5161 GB, free: 7.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003108/0.1219, allocations: 1.437 MB / 0.5175 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000917/0.1228, allocations: 439.9 kB / 0.518 GB, free: 5.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.808e-05/0.1228, allocations: 0 / 0.518 GB, free: 5.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.207e-05/0.1229, allocations: 7.922 kB / 0.518 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.557e-05/0.1229, allocations: 3.938 kB / 0.518 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.1231, allocations: 19.92 kB / 0.518 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.926e-05/0.1232, allocations: 31.92 kB / 0.518 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.1233, allocations: 4.281 kB / 0.518 GB, free: 5.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.1234, allocations: 23.91 kB / 0.5181 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.123e-05/0.1235, allocations: 19.92 kB / 0.5181 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.875e-05/0.1235, allocations: 7.938 kB / 0.5181 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.46e-05/0.1236, allocations: 4 kB / 0.5181 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.1236, allocations: 4 kB / 0.5181 GB, free: 5.168 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.923e-05/0.1236, allocations: 15.92 kB / 0.5181 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001297/0.1238, allocations: 31.83 kB / 0.5181 GB, free: 5.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.1238, allocations: 0 / 0.5181 GB, free: 5.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1238, allocations: 0 / 0.5181 GB, free: 5.121 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.1238, allocations: 3.938 kB / 0.5181 GB, free: 5.117 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.0006256/0.1244, allocations: 278.3 kB / 0.5184 GB, free: 4.816 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.1245, allocations: 8.031 kB / 0.5184 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.553e-05/0.1245, allocations: 30.75 kB / 0.5184 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.218e-05/0.1246, allocations: 8.891 kB / 0.5184 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.1247, allocations: 110.5 kB / 0.5186 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.1247, allocations: 384 / 0.5186 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.1248, allocations: 384 / 0.5186 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.125, allocations: 89.23 kB / 0.5186 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1251, allocations: 0 / 0.5186 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.1251, allocations: 0 / 0.5186 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1251, allocations: 0 / 0.5186 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001201/0.1252, allocations: 31.91 kB / 0.5187 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006526/0.1259, allocations: 231.9 kB / 0.5189 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.126, allocations: 34.5 kB / 0.5189 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.997e-05/0.1261, allocations: 16.92 kB / 0.5189 GB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.1261, allocations: 0 / 0.5189 GB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.411e-05/0.1261, allocations: 30.56 kB / 0.519 GB, free: 4.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1261, allocations: 0 / 0.519 GB, free: 4.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003177/0.1264, allocations: 73.56 kB / 0.519 GB, free: 4.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.569e-05/0.1265, allocations: 81.11 kB / 0.5191 GB, free: 3.945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.1267, allocations: 109.8 kB / 0.5192 GB, free: 3.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.1267, allocations: 25.7 kB / 0.5192 GB, free: 3.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.907e-05/0.1268, allocations: 92.12 kB / 0.5193 GB, free: 3.703 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.1268, allocations: 7.938 kB / 0.5193 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.575e-05/0.1269, allocations: 17.72 kB / 0.5194 GB, free: 3.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002215/0.1272, allocations: 322.8 kB / 0.5197 GB, free: 3.348 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.527e-05/0.1272, allocations: 8 kB / 0.5197 GB, free: 3.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.491e-05/0.1273, allocations: 59.53 kB / 0.5197 GB, free: 3.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.391e-05/0.1274, allocations: 28.78 kB / 0.5198 GB, free: 3.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1274, allocations: 0 / 0.5198 GB, free: 3.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001485/0.1275, allocations: 53.67 kB / 0.5198 GB, free: 3.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.1276, allocations: 8 kB / 0.5198 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.1276, allocations: 0 / 0.5198 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.1276, allocations: 0 / 0.5198 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.1277, allocations: 11.94 kB / 0.5198 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1277, allocations: 0 / 0.5198 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.642e-05/0.1278, allocations: 12.02 kB / 0.5198 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.1278, allocations: 0 / 0.5198 GB, free: 3.148 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 0.0001349/0.1279, allocations: 113.8 kB / 0.5199 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.411e-05/0.1279, allocations: 7.953 kB / 0.52 GB, free: 3.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.575e-05/0.128, allocations: 11.56 kB / 0.52 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.128, allocations: 3.984 kB / 0.52 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.128, allocations: 0 / 0.52 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.128, allocations: 4 kB / 0.52 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/0.1282, allocations: 132.7 kB / 0.5201 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1282, allocations: 0 / 0.5201 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.127e-05/0.1283, allocations: 8 kB / 0.5201 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1283, allocations: 0 / 0.5201 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.1283, allocations: 0 / 0.5201 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1283, allocations: 3.938 kB / 0.5201 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1283, allocations: 0 / 0.5201 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000194/0.1285, allocations: 155.5 kB / 0.5203 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.899e-06/0.1285, allocations: 3.953 kB / 0.5203 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.1285, allocations: 4 kB / 0.5203 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.1286, allocations: 7.984 kB / 0.5203 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.1287, allocations: 12.02 kB / 0.5203 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.1287, allocations: 0 / 0.5203 GB, free: 2.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.307e-05/0.1287, allocations: 91.2 kB / 0.5204 GB, free: 2.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1287, allocations: 0 / 0.5204 GB, free: 2.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002293/0.129, allocations: 8 kB / 0.5204 GB, free: 2.52 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.0005476/0.1295, allocations: 0.6773 MB / 0.521 GB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000158/0.1297, allocations: 27.98 kB / 0.5211 GB, free: 1.789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1297, allocations: 4.031 kB / 0.5211 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.269e-05/0.1297, allocations: 15.92 kB / 0.5211 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.1299, allocations: 4 kB / 0.5211 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004529/0.1304, allocations: 160.3 kB / 0.5212 GB, free: 1.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.517e-05/0.1305, allocations: 63.58 kB / 0.5213 GB, free: 1.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.474e-05/0.1305, allocations: 3.984 kB / 0.5213 GB, free: 1.484 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.427e-05/0.1305, allocations: 19.42 kB / 0.5213 GB, free: 1.465 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1305, allocations: 64 / 0.5213 GB, free: 1.465 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02781/0.1584, allocations: 2.07 MB / 0.5233 GB, free: 15.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.55, allocations: 3.859 kB / 0.5234 GB, free: 15.39 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.785128086339682]