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.001159/0.001159, allocations: 110.8 kB / 17.08 MB, free: 6.016 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.001177/0.001177, allocations: 191.1 kB / 18.01 MB, free: 5.098 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.384/1.384, allocations: 205.1 MB / 223.9 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.2012/0.2012, allocations: 43.52 MB / 314.8 MB, free: 460 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.001446/0.001446, allocations: 63.91 kB / 442.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1233, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003342/0.1267, allocations: 1.443 MB / 0.4899 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009351/0.1277, allocations: 467.8 kB / 0.4904 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.783e-05/0.1278, allocations: 0 / 0.4904 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.417e-05/0.1278, allocations: 0 / 0.4904 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.818e-05/0.1279, allocations: 7.875 kB / 0.4904 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002122/0.1281, allocations: 15.98 kB / 0.4904 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.1282, allocations: 31.86 kB / 0.4904 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.1284, allocations: 11.98 kB / 0.4904 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.1285, allocations: 19.92 kB / 0.4905 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.115e-05/0.1286, allocations: 15.92 kB / 0.4905 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.1286, allocations: 8 kB / 0.4905 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.271e-05/0.1286, allocations: 4 kB / 0.4905 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.941e-05/0.1286, allocations: 7.922 kB / 0.4905 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.632e-05/0.1287, allocations: 11.94 kB / 0.4905 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.1288, allocations: 35.83 kB / 0.4905 GB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1288, allocations: 0 / 0.4905 GB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1288, allocations: 0 / 0.4905 GB, free: 9.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1288, allocations: 3.984 kB / 0.4905 GB, free: 9.727 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.0005419/0.1294, allocations: 354.8 kB / 0.4909 GB, free: 9.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.1294, allocations: 19.89 kB / 0.4909 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4e-05/0.1295, allocations: 0.9375 kB / 0.4909 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.1296, allocations: 168.3 kB / 0.4911 GB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.1297, allocations: 4.375 kB / 0.4911 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.1297, allocations: 384 / 0.4911 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.1299, allocations: 71.62 kB / 0.4911 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.1299, allocations: 0 / 0.4911 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.1299, allocations: 0 / 0.4911 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1299, allocations: 4 kB / 0.4911 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001021/0.13, allocations: 19.98 kB / 0.4912 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004597/0.1305, allocations: 268.8 kB / 0.4914 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.992e-05/0.1306, allocations: 30.52 kB / 0.4914 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.13e-05/0.1307, allocations: 16.91 kB / 0.4915 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.1307, allocations: 7.938 kB / 0.4915 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.07e-05/0.1307, allocations: 34.56 kB / 0.4915 GB, free: 8.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.1307, allocations: 0 / 0.4915 GB, free: 8.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.000244/0.131, allocations: 57.67 kB / 0.4916 GB, free: 8.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.1311, allocations: 77.11 kB / 0.4916 GB, free: 8.426 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.405e-05/0.1311, allocations: 117.8 kB / 0.4917 GB, free: 8.301 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.1312, allocations: 25.83 kB / 0.4918 GB, free: 8.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.1312, allocations: 96.08 kB / 0.4919 GB, free: 8.172 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.1313, allocations: 3.984 kB / 0.4919 GB, free: 8.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.1313, allocations: 13.72 kB / 0.4919 GB, free: 8.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1315, allocations: 314.8 kB / 0.4922 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.508e-05/0.1315, allocations: 15.98 kB / 0.4922 GB, free: 7.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.361e-05/0.1316, allocations: 25.7 kB / 0.4922 GB, free: 7.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.556e-05/0.1317, allocations: 32.81 kB / 0.4922 GB, free: 7.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1317, allocations: 0 / 0.4922 GB, free: 7.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001446/0.1318, allocations: 57.59 kB / 0.4923 GB, free: 7.688 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.1319, allocations: 4 kB / 0.4923 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1319, allocations: 0 / 0.4923 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1319, allocations: 0 / 0.4923 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.463e-05/0.132, allocations: 11.92 kB / 0.4923 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.132, allocations: 0 / 0.4923 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.826e-05/0.1321, allocations: 7.984 kB / 0.4923 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-06/0.1321, allocations: 8 kB / 0.4923 GB, free: 7.656 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.411e-05/0.1322, allocations: 117.7 kB / 0.4924 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.1322, allocations: 4 kB / 0.4924 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.996e-05/0.1323, allocations: 7.531 kB / 0.4925 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.1323, allocations: 0 / 0.4925 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1323, allocations: 4 kB / 0.4925 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1323, allocations: 0 / 0.4925 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.1325, allocations: 165.6 kB / 0.4926 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1325, allocations: 0 / 0.4926 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.175e-05/0.1325, allocations: 11.98 kB / 0.4926 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1325, allocations: 144 / 0.4926 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.1325, allocations: 4 kB / 0.4926 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1326, allocations: 0 / 0.4926 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1326, allocations: 0 / 0.4926 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.1328, allocations: 171.2 kB / 0.4928 GB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.989e-05/0.1328, allocations: 81.05 kB / 0.4929 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.1329, allocations: 4.031 kB / 0.4929 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.407e-05/0.133, allocations: 15.92 kB / 0.4929 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.133, allocations: 0 / 0.4929 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.133, allocations: 7.984 kB / 0.4929 GB, free: 6.977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.392e-05/0.1331, allocations: 83.28 kB / 0.493 GB, free: 6.895 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1331, allocations: 0 / 0.493 GB, free: 6.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.1333, allocations: 8 kB / 0.493 GB, free: 6.887 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.0001101/0.1334, allocations: 95.25 kB / 0.4931 GB, free: 6.785 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.1336, allocations: 31.97 kB / 0.4931 GB, free: 6.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1336, allocations: 0 / 0.4931 GB, free: 6.754 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.038e-05/0.1337, allocations: 15.94 kB / 0.4931 GB, free: 6.738 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.1339, allocations: 10.59 kB / 0.4931 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000318/0.1342, allocations: 152.2 kB / 0.4933 GB, free: 6.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.1345, allocations: 0.6807 MB / 0.4939 GB, free: 5.844 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.1345, allocations: 19.42 kB / 0.494 GB, free: 5.824 MB / 382.1 MB Notification: Performance of SimCode: time 5.1e-07/0.1346, allocations: 0 / 0.494 GB, free: 5.824 MB / 382.1 MB Notification: Performance of Templates: time 0.002256/0.1368, allocations: 0.6293 MB / 0.4946 GB, free: 5.195 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/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