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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001214, allocations: 103.6 kB / 16.4 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 192.2 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1975/0.1975, allocations: 43.52 MB / 314.1 MB, free: 436 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 65.45 kB / 441.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1156, allocations: 57.78 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002735/0.1183, allocations: 1.449 MB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008284/0.1192, allocations: 463.8 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.456e-05/0.1193, allocations: 0 / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.175e-05/0.1193, allocations: 0 / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.91e-05/0.1194, allocations: 7.875 kB / 0.4892 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.1196, allocations: 19.97 kB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.191e-05/0.1197, allocations: 31.86 kB / 0.4893 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.1198, allocations: 12 kB / 0.4893 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.1199, allocations: 19.92 kB / 0.4893 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.294e-05/0.12, allocations: 19.91 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.908e-05/0.12, allocations: 4 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.306e-05/0.12, allocations: 4 kB / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.1201, allocations: 7.922 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.581e-05/0.1201, allocations: 11.94 kB / 0.4894 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.1202, allocations: 27.91 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1202, allocations: 0 / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1202, allocations: 0 / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.1202, allocations: 4 kB / 0.4894 GB, free: 10.21 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005121/0.1208, allocations: 355.3 kB / 0.4897 GB, free: 9.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.1208, allocations: 15.89 kB / 0.4898 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.1209, allocations: 34.75 kB / 0.4898 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.892e-05/0.1209, allocations: 8.891 kB / 0.4898 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.121, allocations: 164.4 kB / 0.49 GB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1211, allocations: 384 / 0.49 GB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.1211, allocations: 4.375 kB / 0.49 GB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.1213, allocations: 67.45 kB / 0.49 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1213, allocations: 0 / 0.49 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.1213, allocations: 0 / 0.49 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1213, allocations: 4 kB / 0.49 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.1214, allocations: 19.92 kB / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004277/0.1219, allocations: 264.9 kB / 0.4903 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.93e-05/0.122, allocations: 38.5 kB / 0.4903 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.611e-05/0.122, allocations: 20.91 kB / 0.4904 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.1221, allocations: 0 / 0.4904 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.1221, allocations: 30.56 kB / 0.4904 GB, free: 9.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.1221, allocations: 3.938 kB / 0.4904 GB, free: 9.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002705/0.1224, allocations: 69.72 kB / 0.4905 GB, free: 8.949 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/0.1224, allocations: 81.11 kB / 0.4905 GB, free: 8.852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.1226, allocations: 109.8 kB / 0.4906 GB, free: 8.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1226, allocations: 25.7 kB / 0.4907 GB, free: 8.703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.996e-05/0.1226, allocations: 88.14 kB / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.1227, allocations: 7.938 kB / 0.4908 GB, free: 8.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.983e-05/0.1227, allocations: 17.72 kB / 0.4908 GB, free: 8.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1229, allocations: 314.8 kB / 0.4911 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.361e-05/0.1229, allocations: 20.02 kB / 0.4911 GB, free: 8.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.609e-05/0.123, allocations: 25.7 kB / 0.4911 GB, free: 8.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.333e-05/0.1231, allocations: 24.84 kB / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1231, allocations: 0 / 0.4911 GB, free: 8.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001407/0.1232, allocations: 57.62 kB / 0.4912 GB, free: 8.125 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1233, allocations: 4 kB / 0.4912 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1233, allocations: 0 / 0.4912 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1233, allocations: 4.031 kB / 0.4912 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.641e-05/0.1234, allocations: 7.984 kB / 0.4912 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.1234, allocations: 0 / 0.4912 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.723e-05/0.1235, allocations: 15.98 kB / 0.4912 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.1235, allocations: 0 / 0.4912 GB, free: 8.094 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: 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.0001003/0.1236, allocations: 117.7 kB / 0.4913 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.1236, allocations: 3.953 kB / 0.4913 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.1237, allocations: 11.53 kB / 0.4914 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1237, allocations: 4 kB / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1237, allocations: 0 / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1237, allocations: 0 / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.1239, allocations: 161.6 kB / 0.4915 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1239, allocations: 4 kB / 0.4915 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.243e-05/0.1239, allocations: 7.984 kB / 0.4915 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1239, allocations: 3.938 kB / 0.4915 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.1239, allocations: 0 / 0.4915 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1239, allocations: 4 kB / 0.4915 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.124, allocations: 0 / 0.4915 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.1241, allocations: 159.4 kB / 0.4917 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.165e-05/0.1242, allocations: 85 kB / 0.4918 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.1242, allocations: 4 kB / 0.4918 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.488e-05/0.1243, allocations: 7.984 kB / 0.4918 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.837e-05/0.1244, allocations: 4 kB / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.1244, allocations: 7.984 kB / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.201e-05/0.1244, allocations: 87.31 kB / 0.4919 GB, free: 7.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1244, allocations: 0 / 0.4919 GB, free: 7.336 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002149/0.1247, allocations: 7.938 kB / 0.4919 GB, free: 7.328 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 (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.0004604/0.1251, allocations: 0.6811 MB / 0.4925 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001674/0.1253, allocations: 32.02 kB / 0.4926 GB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1253, allocations: 0 / 0.4926 GB, free: 6.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.933e-05/0.1254, allocations: 11.98 kB / 0.4926 GB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.1256, allocations: 4 kB / 0.4926 GB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004197/0.126, allocations: 156.1 kB / 0.4927 GB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.1263, allocations: 0.6845 MB / 0.4934 GB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.343e-05/0.1263, allocations: 8.281 kB / 0.4934 GB, free: 5.664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.445e-05/0.1264, allocations: 15.44 kB / 0.4934 GB, free: 5.648 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1264, allocations: 0 / 0.4934 GB, free: 5.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/0.145, allocations: 1.508 MB / 0.4949 GB, free: 4.129 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.72/7.865, allocations: 4.062 kB / 0.4949 GB, free: 4.125 MB / 382.1 MB (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.0012 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) 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) Reference file matches