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.001457/0.001457, allocations: 112.1 kB / 16.41 MB, free: 6.492 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.001508/0.001508, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.547/1.547, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.2289/0.2289, allocations: 43.52 MB / 314.1 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.001823/0.001823, allocations: 63.91 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1411, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003929/0.1451, allocations: 1.438 MB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.1463, allocations: 463.8 kB / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.091e-05/0.1464, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.802e-05/0.1465, allocations: 0 / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.486e-05/0.1466, allocations: 7.875 kB / 0.4897 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.1469, allocations: 19.97 kB / 0.4897 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.1471, allocations: 35.86 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.1472, allocations: 4 kB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.1474, allocations: 19.92 kB / 0.4898 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.1475, allocations: 19.91 kB / 0.4898 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.1475, allocations: 8 kB / 0.4898 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.449e-05/0.1476, allocations: 4 kB / 0.4898 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.886e-05/0.1476, allocations: 11.92 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.986e-05/0.1476, allocations: 11.94 kB / 0.4898 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.1478, allocations: 31.83 kB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1478, allocations: 0 / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1478, allocations: 0 / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1478, allocations: 0 / 0.4899 GB, free: 9.73 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.0007352/0.1486, allocations: 362.7 kB / 0.4902 GB, free: 9.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.532e-05/0.1486, allocations: 19.89 kB / 0.4902 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.161e-05/0.1487, allocations: 0.9375 kB / 0.4902 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.149, allocations: 168.3 kB / 0.4904 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.149, allocations: 384 / 0.4904 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.1491, allocations: 384 / 0.4904 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.1494, allocations: 71.62 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1494, allocations: 0 / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.1494, allocations: 0 / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1494, allocations: 4 kB / 0.4905 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.1495, allocations: 19.98 kB / 0.4905 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005541/0.1501, allocations: 264.9 kB / 0.4908 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.813e-05/0.1502, allocations: 34.45 kB / 0.4908 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.344e-05/0.1503, allocations: 20.91 kB / 0.4908 GB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.1503, allocations: 7.938 kB / 0.4908 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1503, allocations: 30.56 kB / 0.4908 GB, free: 8.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.243e-06/0.1504, allocations: 0 / 0.4908 GB, free: 8.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002999/0.1507, allocations: 61.67 kB / 0.4909 GB, free: 8.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.1507, allocations: 81.11 kB / 0.491 GB, free: 8.418 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.1509, allocations: 113.7 kB / 0.4911 GB, free: 8.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.1509, allocations: 29.77 kB / 0.4911 GB, free: 8.262 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.151, allocations: 92.14 kB / 0.4912 GB, free: 8.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.151, allocations: 3.984 kB / 0.4912 GB, free: 8.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.151, allocations: 17.72 kB / 0.4912 GB, free: 8.141 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1512, allocations: 310.8 kB / 0.4915 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.395e-05/0.1513, allocations: 15.98 kB / 0.4915 GB, free: 7.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.88e-05/0.1513, allocations: 25.7 kB / 0.4916 GB, free: 7.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.376e-05/0.1514, allocations: 32.81 kB / 0.4916 GB, free: 7.746 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1514, allocations: 0 / 0.4916 GB, free: 7.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001384/0.1516, allocations: 61.59 kB / 0.4916 GB, free: 7.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1516, allocations: 4 kB / 0.4917 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1516, allocations: 0 / 0.4917 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1516, allocations: 3.938 kB / 0.4917 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.63e-05/0.1517, allocations: 7.984 kB / 0.4917 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.1517, allocations: 0 / 0.4917 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.234e-05/0.1518, allocations: 12 kB / 0.4917 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.1518, allocations: 3.984 kB / 0.4917 GB, free: 7.648 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.15e-05/0.1519, allocations: 113.7 kB / 0.4918 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.152, allocations: 4 kB / 0.4918 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.152, allocations: 7.531 kB / 0.4918 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.152, allocations: 0 / 0.4918 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.152, allocations: 4 kB / 0.4918 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.152, allocations: 0 / 0.4918 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.1522, allocations: 161.6 kB / 0.492 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1523, allocations: 0 / 0.492 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.269e-05/0.1523, allocations: 11.98 kB / 0.492 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.1523, allocations: 0 / 0.492 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.1523, allocations: 4 kB / 0.492 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1523, allocations: 0 / 0.492 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1523, allocations: 144 / 0.492 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.1525, allocations: 167.2 kB / 0.4921 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.643e-05/0.1526, allocations: 85.06 kB / 0.4922 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.1526, allocations: 4 kB / 0.4922 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.101e-05/0.1527, allocations: 8 kB / 0.4922 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.1528, allocations: 11.92 kB / 0.4922 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.1528, allocations: 4 kB / 0.4922 GB, free: 6.977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.505e-05/0.1528, allocations: 83.27 kB / 0.4923 GB, free: 6.895 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1529, allocations: 0 / 0.4923 GB, free: 6.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.1531, allocations: 12 kB / 0.4923 GB, free: 6.883 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.0001152/0.1532, allocations: 95.25 kB / 0.4924 GB, free: 6.781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001784/0.1534, allocations: 23.98 kB / 0.4924 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1534, allocations: 0 / 0.4924 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.667e-05/0.1535, allocations: 19.92 kB / 0.4925 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.000263/0.1537, allocations: 7.938 kB / 0.4925 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.1542, allocations: 130.5 kB / 0.4926 GB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.1546, allocations: 0.6846 MB / 0.4933 GB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.749e-05/0.1547, allocations: 0 / 0.4933 GB, free: 5.867 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.303e-05/0.1547, allocations: 15.42 kB / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1548, allocations: 0 / 0.4933 GB, free: 5.852 MB / 382.1 MB Notification: Performance of Templates: time 0.003604/0.1584, allocations: 0.587 MB / 0.4939 GB, free: 5.266 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