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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0008536/0.0008537, allocations: 176.2 kB / 16.76 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.64/1.64, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008035/0.0008036, allocations: 97.34 kB / 271.3 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3796/0.3796, allocations: 43.56 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003821, allocations: 16 kB / 432.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1352, allocations: 58.85 MB / 491.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3617/0.497, allocations: 85.17 MB / 0.5631 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.4973, allocations: 55.98 kB / 0.5632 GB, free: 0.793 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002979/0.5003, allocations: 0.9513 MB / 0.5641 GB, free: 15.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.5004, allocations: 0 / 0.5641 GB, free: 15.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.5004, allocations: 0 / 0.5641 GB, free: 15.86 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.0004935/0.5009, allocations: 352.1 kB / 0.5644 GB, free: 15.47 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.501, allocations: 8.031 kB / 0.5644 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.501, allocations: 4.938 kB / 0.5644 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.5012, allocations: 180.2 kB / 0.5646 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.5012, allocations: 4.375 kB / 0.5646 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.5013, allocations: 384 / 0.5646 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.5015, allocations: 63.95 kB / 0.5647 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5015, allocations: 192 / 0.5647 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.5015, allocations: 3.938 kB / 0.5647 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.5015, allocations: 0 / 0.5647 GB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.5016, allocations: 27.98 kB / 0.5647 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005191/0.5022, allocations: 260.9 kB / 0.565 GB, free: 14.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.693e-05/0.5023, allocations: 34.5 kB / 0.565 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.596e-05/0.5023, allocations: 24.91 kB / 0.565 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.5024, allocations: 0 / 0.565 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.5024, allocations: 30.56 kB / 0.565 GB, free: 14.72 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.713e-06/0.5024, allocations: 2.078 kB / 0.565 GB, free: 14.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003476/0.5028, allocations: 77.7 kB / 0.5651 GB, free: 14.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.5028, allocations: 77.11 kB / 0.5652 GB, free: 14.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.503, allocations: 109.8 kB / 0.5653 GB, free: 14.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.503, allocations: 25.7 kB / 0.5653 GB, free: 14.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.906e-05/0.5031, allocations: 84.14 kB / 0.5654 GB, free: 14.31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.5031, allocations: 11.91 kB / 0.5654 GB, free: 14.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-06/0.5031, allocations: 2.953 kB / 0.5654 GB, free: 14.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.5033, allocations: 314.8 kB / 0.5657 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.457e-05/0.5034, allocations: 16.03 kB / 0.5657 GB, free: 13.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.153e-05/0.5034, allocations: 33.69 kB / 0.5658 GB, free: 13.93 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.688e-05/0.5035, allocations: 28.84 kB / 0.5658 GB, free: 13.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5035, allocations: 0 / 0.5658 GB, free: 13.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001566/0.5037, allocations: 69.58 kB / 0.5659 GB, free: 13.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.5037, allocations: 10.72 kB / 0.5659 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.5038, allocations: 0 / 0.5659 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.5038, allocations: 0 / 0.5659 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.563e-05/0.5039, allocations: 4 kB / 0.5659 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.5039, allocations: 0 / 0.5659 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.557e-05/0.504, allocations: 19.89 kB / 0.5659 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.504, allocations: 0 / 0.5659 GB, free: 13.79 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001285/0.5041, allocations: 117.8 kB / 0.566 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.069e-05/0.5042, allocations: 4 kB / 0.566 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.305e-05/0.5042, allocations: 7.531 kB / 0.566 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.5042, allocations: 0 / 0.566 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.5042, allocations: 3.984 kB / 0.566 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.5042, allocations: 0 / 0.566 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.5045, allocations: 161.6 kB / 0.5662 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.5045, allocations: 3.984 kB / 0.5662 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-05/0.5045, allocations: 4 kB / 0.5662 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5045, allocations: 4 kB / 0.5662 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.5046, allocations: 2.5 kB / 0.5662 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5046, allocations: 0 / 0.5662 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.5046, allocations: 3.938 kB / 0.5662 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.5048, allocations: 156 kB / 0.5663 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.734e-05/0.5049, allocations: 89.05 kB / 0.5664 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.5049, allocations: 0 / 0.5664 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.877e-05/0.505, allocations: 11.98 kB / 0.5664 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.5051, allocations: 7.984 kB / 0.5664 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.5051, allocations: 3.828 kB / 0.5664 GB, free: 13.14 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.135e-05/0.5052, allocations: 95.25 kB / 0.5665 GB, free: 13.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5052, allocations: 0 / 0.5665 GB, free: 13.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002149/0.5054, allocations: 4 kB / 0.5665 GB, free: 13.04 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) * 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 (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.0001282/0.5055, allocations: 104 kB / 0.5666 GB, free: 12.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001565/0.5057, allocations: 31.92 kB / 0.5667 GB, free: 12.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5057, allocations: 0 / 0.5667 GB, free: 12.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.282e-05/0.5058, allocations: 19.98 kB / 0.5667 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.506, allocations: 3.938 kB / 0.5667 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003431/0.5063, allocations: 134.9 kB / 0.5668 GB, free: 12.72 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004068/0.5068, allocations: 0.6848 MB / 0.5675 GB, free: 12.01 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.92e-05/0.5068, allocations: 0 / 0.5675 GB, free: 12.01 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.957e-05/0.5068, allocations: 11.44 kB / 0.5675 GB, free: 12 MB / 394.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5069, allocations: 0 / 0.5675 GB, free: 12 MB / 394.7 MB Notification: Performance of Templates: time 0.003285/0.5101, allocations: 495.6 kB / 0.568 GB, free: 11.53 MB / 394.7 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches