Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001415/0.001415, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 93.22 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2958/0.2958, allocations: 43.48 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.592e-05/2.611e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4025, allocations: 58.85 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.56, allocations: 84.38 MB / 0.5483 GB, free: 14.92 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.5603, allocations: 63.97 kB / 0.5484 GB, free: 14.86 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.003921/0.5643, allocations: 0.9394 MB / 0.5493 GB, free: 13.92 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.5643, allocations: 0 / 0.5493 GB, free: 13.92 MB / 395.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.5643, allocations: 3.938 kB / 0.5493 GB, free: 13.91 MB / 395.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.0004578/0.5648, allocations: 342.5 kB / 0.5496 GB, free: 13.54 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.5649, allocations: 8.031 kB / 0.5496 GB, free: 13.53 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.792e-05/0.5649, allocations: 4 kB / 0.5496 GB, free: 13.52 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.5651, allocations: 178.9 kB / 0.5498 GB, free: 13.31 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.5651, allocations: 0 / 0.5498 GB, free: 13.31 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.5651, allocations: 0 / 0.5498 GB, free: 13.31 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.128e-05/0.5652, allocations: 12 kB / 0.5498 GB, free: 13.3 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001109/0.5654, allocations: 47.41 kB / 0.5498 GB, free: 13.24 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.5654, allocations: 0 / 0.5498 GB, free: 13.24 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.5654, allocations: 8 kB / 0.5498 GB, free: 13.23 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.5654, allocations: 3.938 kB / 0.5499 GB, free: 13.23 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00048/0.5659, allocations: 241.5 kB / 0.5501 GB, free: 12.95 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.288e-05/0.566, allocations: 22.58 kB / 0.5501 GB, free: 12.92 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.622e-05/0.5661, allocations: 12.92 kB / 0.5501 GB, free: 12.91 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.5661, allocations: 4 kB / 0.5501 GB, free: 12.9 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.5661, allocations: 34.56 kB / 0.5502 GB, free: 12.86 MB / 395.1 MB Notification: Performance of pre-optimization done (n=2): time 1.623e-06/0.5661, allocations: 0 / 0.5502 GB, free: 12.86 MB / 395.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001953/0.5663, allocations: 45.62 kB / 0.5502 GB, free: 12.81 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.5664, allocations: 77.11 kB / 0.5503 GB, free: 12.71 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.47e-05/0.5665, allocations: 97 kB / 0.5504 GB, free: 12.61 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.5666, allocations: 25.7 kB / 0.5504 GB, free: 12.58 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.088e-05/0.5667, allocations: 166.5 kB / 0.5505 GB, free: 12.42 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.677e-05/0.5667, allocations: 3.938 kB / 0.5506 GB, free: 12.41 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-06/0.5667, allocations: 0 / 0.5506 GB, free: 12.41 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.5669, allocations: 318.8 kB / 0.5509 GB, free: 12.09 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.476e-05/0.5669, allocations: 8 kB / 0.5509 GB, free: 12.09 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.472e-05/0.567, allocations: 20.67 kB / 0.5509 GB, free: 12.06 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.82e-05/0.567, allocations: 4 kB / 0.5509 GB, free: 12.06 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.567, allocations: 0 / 0.5509 GB, free: 12.06 MB / 395.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001217/0.5672, allocations: 53.72 kB / 0.5509 GB, free: 12 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.5672, allocations: 4 kB / 0.5509 GB, free: 12 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.5672, allocations: 4 kB / 0.5509 GB, free: 11.99 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.5672, allocations: 3.938 kB / 0.5509 GB, free: 11.99 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.5674, allocations: 7.984 kB / 0.551 GB, free: 11.98 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.5674, allocations: 0 / 0.551 GB, free: 11.98 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.5675, allocations: 8 kB / 0.551 GB, free: 11.97 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.5675, allocations: 0 / 0.551 GB, free: 11.97 MB / 395.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 ($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 9.778e-05/0.5676, allocations: 116.9 kB / 0.5511 GB, free: 11.85 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.5677, allocations: 3.906 kB / 0.5511 GB, free: 11.85 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/0.5677, allocations: 3.969 kB / 0.5511 GB, free: 11.84 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.5677, allocations: 4 kB / 0.5511 GB, free: 11.84 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.5677, allocations: 0 / 0.5511 GB, free: 11.84 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.5678, allocations: 0 / 0.5511 GB, free: 11.84 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.568, allocations: 138.2 kB / 0.5512 GB, free: 11.67 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.568, allocations: 3.953 kB / 0.5512 GB, free: 11.66 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.423e-05/0.5681, allocations: 8 kB / 0.5512 GB, free: 11.66 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.5681, allocations: 4.141 kB / 0.5512 GB, free: 11.65 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.5681, allocations: 0 / 0.5512 GB, free: 11.65 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5681, allocations: 8 kB / 0.5512 GB, free: 11.64 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.5681, allocations: 7.969 kB / 0.5512 GB, free: 11.64 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.5683, allocations: 135.5 kB / 0.5514 GB, free: 11.49 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/0.5684, allocations: 88.95 kB / 0.5515 GB, free: 11.38 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.543e-05/0.5684, allocations: 0 / 0.5515 GB, free: 11.38 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.5685, allocations: 12.58 kB / 0.5515 GB, free: 11.37 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.5686, allocations: 7.984 kB / 0.5515 GB, free: 11.36 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.5686, allocations: 3.984 kB / 0.5515 GB, free: 11.36 MB / 395.1 MB Notification: Performance of sorting global known variables: time 6.048e-05/0.5687, allocations: 87.28 kB / 0.5516 GB, free: 11.27 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.753e-06/0.5687, allocations: 0 / 0.5516 GB, free: 11.27 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003011/0.569, allocations: 6.953 kB / 0.5516 GB, free: 11.27 MB / 395.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) * 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 0.0001328/0.5692, allocations: 91.25 kB / 0.5517 GB, free: 11.17 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001246/0.5693, allocations: 24 kB / 0.5517 GB, free: 11.14 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5693, allocations: 0 / 0.5517 GB, free: 11.14 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 3.825e-05/0.5694, allocations: 7.938 kB / 0.5517 GB, free: 11.14 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.5696, allocations: 16.27 kB / 0.5517 GB, free: 11.12 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003015/0.5699, allocations: 85.64 kB / 0.5518 GB, free: 11.01 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.5702, allocations: 0.6846 MB / 0.5525 GB, free: 10.3 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.528e-05/0.5703, allocations: 11.44 kB / 0.5525 GB, free: 10.29 MB / 395.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5703, allocations: 0 / 0.5525 GB, free: 10.29 MB / 395.1 MB Notification: Performance of Templates: time 0.0025/0.5728, allocations: 0.6131 MB / 0.5531 GB, free: 9.68 MB / 395.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches