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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 106.3 kB / 16.41 MB, free: 6.449 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.001178/0.001178, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.426/1.426, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2064/0.2064, allocations: 43.52 MB / 314.1 MB, free: 456 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.001407/0.001407, allocations: 69.41 kB / 441.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1263, allocations: 57.79 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002823/0.1291, allocations: 1.434 MB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008706/0.13, allocations: 455.8 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.369e-05/0.1301, allocations: 4 kB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.1302, allocations: 7.922 kB / 0.4897 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.075e-05/0.1302, allocations: 3.938 kB / 0.4897 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.1304, allocations: 19.97 kB / 0.4897 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.182e-05/0.1305, allocations: 39.8 kB / 0.4898 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.1306, allocations: 8 kB / 0.4898 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1308, allocations: 11.98 kB / 0.4898 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.855e-05/0.1308, allocations: 19.92 kB / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.1309, allocations: 4 kB / 0.4898 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.214e-05/0.1309, allocations: 4 kB / 0.4898 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.964e-05/0.1309, allocations: 7.922 kB / 0.4898 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.1309, allocations: 19.92 kB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.574e-05/0.131, allocations: 27.84 kB / 0.4899 GB, free: 9.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.131, allocations: 0 / 0.4899 GB, free: 9.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1311, allocations: 0 / 0.4899 GB, free: 9.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.1311, allocations: 0 / 0.4899 GB, free: 9.707 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.0005096/0.1316, allocations: 358.8 kB / 0.4902 GB, free: 9.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1316, allocations: 19.88 kB / 0.4902 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.14e-05/0.1317, allocations: 4.938 kB / 0.4902 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.1318, allocations: 176.2 kB / 0.4904 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.1319, allocations: 384 / 0.4904 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.1319, allocations: 4.375 kB / 0.4904 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.1321, allocations: 63.69 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1321, allocations: 0 / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.1321, allocations: 4 kB / 0.4905 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.1321, allocations: 0 / 0.4905 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.97e-05/0.1322, allocations: 23.98 kB / 0.4905 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004347/0.1327, allocations: 264.8 kB / 0.4908 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.289e-05/0.1328, allocations: 26.58 kB / 0.4908 GB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.1e-05/0.1328, allocations: 24.84 kB / 0.4908 GB, free: 8.602 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.1329, allocations: 4 kB / 0.4908 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.1329, allocations: 30.56 kB / 0.4908 GB, free: 8.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.1329, allocations: 0 / 0.4908 GB, free: 8.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002626/0.1332, allocations: 65.61 kB / 0.4909 GB, free: 8.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.1333, allocations: 81.05 kB / 0.491 GB, free: 8.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.1334, allocations: 113.8 kB / 0.4911 GB, free: 8.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.1334, allocations: 29.7 kB / 0.4911 GB, free: 8.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.1334, allocations: 88.27 kB / 0.4912 GB, free: 8.145 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.1335, allocations: 0 / 0.4912 GB, free: 8.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/0.1335, allocations: 21.7 kB / 0.4912 GB, free: 8.117 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1336, allocations: 310.8 kB / 0.4915 GB, free: 7.805 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.637e-05/0.1337, allocations: 15.98 kB / 0.4915 GB, free: 7.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.081e-05/0.1338, allocations: 21.72 kB / 0.4916 GB, free: 7.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.288e-05/0.1338, allocations: 32.81 kB / 0.4916 GB, free: 7.727 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1339, allocations: 0 / 0.4916 GB, free: 7.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001299/0.134, allocations: 65.52 kB / 0.4916 GB, free: 7.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.134, allocations: 4 kB / 0.4917 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.134, allocations: 0 / 0.4917 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.134, allocations: 4 kB / 0.4917 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.401e-05/0.1341, allocations: 3.984 kB / 0.4917 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.1341, allocations: 0 / 0.4917 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.307e-05/0.1342, allocations: 8 kB / 0.4917 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.916e-06/0.1342, allocations: 8 kB / 0.4917 GB, free: 7.629 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 9.113e-05/0.1343, allocations: 121.7 kB / 0.4918 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.39e-05/0.1343, allocations: 0 / 0.4918 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.957e-05/0.1344, allocations: 11.53 kB / 0.4918 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1344, allocations: 0 / 0.4918 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.1344, allocations: 0 / 0.4918 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1344, allocations: 0 / 0.4918 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.1346, allocations: 165.6 kB / 0.492 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1346, allocations: 4 kB / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.098e-05/0.1346, allocations: 4 kB / 0.492 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.1346, allocations: 4.078 kB / 0.492 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.1347, allocations: 7.984 kB / 0.492 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1347, allocations: 0 / 0.492 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1347, allocations: 3.938 kB / 0.492 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.1348, allocations: 155.4 kB / 0.4921 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.231e-05/0.1349, allocations: 85.03 kB / 0.4922 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.1349, allocations: 8.031 kB / 0.4922 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.135, allocations: 4 kB / 0.4922 GB, free: 6.969 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.135, allocations: 7.984 kB / 0.4922 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1351, allocations: 0 / 0.4922 GB, free: 6.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.695e-05/0.1351, allocations: 91.27 kB / 0.4923 GB, free: 6.871 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1351, allocations: 0 / 0.4923 GB, free: 6.871 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.1353, allocations: 4 kB / 0.4923 GB, free: 6.867 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.0001007/0.1355, allocations: 95.25 kB / 0.4924 GB, free: 6.766 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001615/0.1356, allocations: 35.86 kB / 0.4924 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1356, allocations: 0 / 0.4924 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.86e-05/0.1357, allocations: 15.98 kB / 0.4925 GB, free: 6.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.1359, allocations: 11.73 kB / 0.4925 GB, free: 6.707 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00031/0.1362, allocations: 130.5 kB / 0.4926 GB, free: 6.555 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.1365, allocations: 0.6807 MB / 0.4933 GB, free: 5.848 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.257e-05/0.1365, allocations: 0 / 0.4933 GB, free: 5.848 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.542e-05/0.1366, allocations: 19.42 kB / 0.4933 GB, free: 5.828 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1366, allocations: 3.938 kB / 0.4933 GB, free: 5.824 MB / 382.1 MB Notification: Performance of Templates: time 0.002713/0.1393, allocations: 0.5831 MB / 0.4939 GB, free: 5.242 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches