Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.5 MB / 230.7 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009296/0.0009297, allocations: 89.86 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1892/0.1892, allocations: 44.15 MB / 376.5 MB, free: 3.047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.919e-05/1.922e-05, allocations: 224 / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 61.91 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3736/0.5047, allocations: 85.47 MB / 0.5781 GB, free: 11.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001774/0.5049, allocations: 63.97 kB / 0.5782 GB, free: 11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002753/0.5077, allocations: 0.9832 MB / 0.5791 GB, free: 10.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5077, allocations: 4 kB / 0.5791 GB, free: 10.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.5077, allocations: 0 / 0.5791 GB, free: 10.02 MB / 394.7 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.0003259/0.5081, allocations: 333.1 kB / 0.5795 GB, free: 9.648 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.5081, allocations: 15.98 kB / 0.5795 GB, free: 9.633 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.281e-05/0.5082, allocations: 4 kB / 0.5795 GB, free: 9.629 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.5083, allocations: 170.9 kB / 0.5796 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.5083, allocations: 0 / 0.5796 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.5083, allocations: 0 / 0.5796 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.869e-05/0.5084, allocations: 23.88 kB / 0.5797 GB, free: 9.398 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.328e-05/0.5085, allocations: 51.41 kB / 0.5797 GB, free: 9.336 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.5085, allocations: 0 / 0.5797 GB, free: 9.336 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.5085, allocations: 0 / 0.5797 GB, free: 9.336 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.5085, allocations: 0 / 0.5797 GB, free: 9.336 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003426/0.5089, allocations: 237.6 kB / 0.5799 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.688e-05/0.509, allocations: 34.56 kB / 0.58 GB, free: 9.023 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.637e-05/0.509, allocations: 16.86 kB / 0.58 GB, free: 9.004 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.509, allocations: 3.984 kB / 0.58 GB, free: 9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.509, allocations: 34.56 kB / 0.58 GB, free: 8.957 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.363e-06/0.509, allocations: 0 / 0.58 GB, free: 8.957 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001389/0.5092, allocations: 37.7 kB / 0.5801 GB, free: 8.914 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.5092, allocations: 81.09 kB / 0.5801 GB, free: 8.816 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.747e-05/0.5093, allocations: 97.7 kB / 0.5802 GB, free: 8.715 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.5093, allocations: 29.7 kB / 0.5803 GB, free: 8.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.5094, allocations: 84.14 kB / 0.5803 GB, free: 8.594 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.5094, allocations: 7.891 kB / 0.5804 GB, free: 8.586 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-06/0.5094, allocations: 7.859 kB / 0.5804 GB, free: 8.582 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.5095, allocations: 318.8 kB / 0.5807 GB, free: 8.262 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.751e-05/0.5096, allocations: 4 kB / 0.5807 GB, free: 8.258 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.702e-05/0.5096, allocations: 22.5 kB / 0.5807 GB, free: 8.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.132e-05/0.5096, allocations: 11.98 kB / 0.5807 GB, free: 8.219 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.5096, allocations: 0 / 0.5807 GB, free: 8.219 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.478e-05/0.5097, allocations: 45.61 kB / 0.5807 GB, free: 8.168 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.5097, allocations: 7.953 kB / 0.5808 GB, free: 8.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.5098, allocations: 8.031 kB / 0.5808 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.5098, allocations: 0 / 0.5808 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.471e-05/0.5099, allocations: 7.984 kB / 0.5808 GB, free: 8.145 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.5099, allocations: 320 / 0.5808 GB, free: 8.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.244e-05/0.5099, allocations: 15.92 kB / 0.5808 GB, free: 8.129 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.51, allocations: 0 / 0.5808 GB, free: 8.129 MB / 394.7 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 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.713e-05/0.51, allocations: 105 kB / 0.5809 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.5101, allocations: 4.141 kB / 0.5809 GB, free: 8.016 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.094e-05/0.5101, allocations: 15.91 kB / 0.5809 GB, free: 8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5101, allocations: 4 kB / 0.5809 GB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.5101, allocations: 0 / 0.5809 GB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.5101, allocations: 1.312 kB / 0.5809 GB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.5103, allocations: 138.2 kB / 0.581 GB, free: 7.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.5103, allocations: 3.938 kB / 0.581 GB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.897e-05/0.5103, allocations: 4 kB / 0.5811 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.5103, allocations: 3.984 kB / 0.5811 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.5103, allocations: 0 / 0.5811 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5103, allocations: 11.98 kB / 0.5811 GB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.5104, allocations: 3.953 kB / 0.5811 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.5105, allocations: 135.5 kB / 0.5812 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.263e-05/0.5105, allocations: 81.02 kB / 0.5813 GB, free: 7.551 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.5105, allocations: 4.625 kB / 0.5813 GB, free: 7.547 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.968e-05/0.5106, allocations: 12.02 kB / 0.5813 GB, free: 7.535 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-05/0.5107, allocations: 15.94 kB / 0.5813 GB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.5107, allocations: 0 / 0.5813 GB, free: 7.52 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.565e-05/0.5107, allocations: 87.28 kB / 0.5814 GB, free: 7.434 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.663e-06/0.5108, allocations: 0 / 0.5814 GB, free: 7.434 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002038/0.511, allocations: 6.953 kB / 0.5814 GB, free: 7.43 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.678e-05/0.5111, allocations: 91.25 kB / 0.5815 GB, free: 7.328 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001066/0.5112, allocations: 23.92 kB / 0.5815 GB, free: 7.305 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5112, allocations: 4 kB / 0.5815 GB, free: 7.301 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.192e-05/0.5112, allocations: 8 kB / 0.5815 GB, free: 7.293 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.5114, allocations: 0 / 0.5815 GB, free: 7.293 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002059/0.5116, allocations: 63.94 kB / 0.5816 GB, free: 7.207 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.5118, allocations: 0.6807 MB / 0.5822 GB, free: 6.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.921e-05/0.5119, allocations: 0 / 0.5822 GB, free: 6.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.756e-05/0.5119, allocations: 15.42 kB / 0.5823 GB, free: 6.484 MB / 394.7 MB Notification: Performance of SimCode: time 3.7e-07/0.5119, allocations: 0 / 0.5823 GB, free: 6.484 MB / 394.7 MB Notification: Performance of Templates: time 0.002102/0.514, allocations: 448.6 kB / 0.5827 GB, free: 6.051 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches