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.001825/0.001825, allocations: 183.3 kB / 15.76 MB, free: 6.367 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.846/1.846, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001014/0.001014, allocations: 90.88 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.209/0.209, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003333, allocations: 12 kB / 431.4 MB, free: 19.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1448, allocations: 58.86 MB / 490.2 MB, free: 8.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.35/0.4949, allocations: 85.13 MB / 0.5619 GB, free: 14.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001521/0.4951, allocations: 67.34 kB / 0.5619 GB, free: 14.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002399/0.4975, allocations: 0.9387 MB / 0.5629 GB, free: 13.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4975, allocations: 0 / 0.5629 GB, free: 13.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.4975, allocations: 0 / 0.5629 GB, free: 13.73 MB / 378.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.0003309/0.4979, allocations: 354.9 kB / 0.5632 GB, free: 13.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.4979, allocations: 12.03 kB / 0.5632 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.938e-05/0.498, allocations: 4 kB / 0.5632 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.4981, allocations: 171 kB / 0.5634 GB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.4981, allocations: 3.984 kB / 0.5634 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.4981, allocations: 3.984 kB / 0.5634 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.4983, allocations: 58.72 kB / 0.5634 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.4983, allocations: 0 / 0.5634 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.4983, allocations: 4 kB / 0.5634 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.4983, allocations: 3.938 kB / 0.5635 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.4984, allocations: 31.67 kB / 0.5635 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000375/0.4988, allocations: 267.5 kB / 0.5637 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.217e-05/0.4989, allocations: 35.34 kB / 0.5638 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.4989, allocations: 4.062 kB / 0.5638 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.499, allocations: 30.56 kB / 0.5638 GB, free: 12.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.499, allocations: 0 / 0.5638 GB, free: 12.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002247/0.4992, allocations: 72.67 kB / 0.5639 GB, free: 12.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.4993, allocations: 81.23 kB / 0.5639 GB, free: 12.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.417e-05/0.4993, allocations: 100.6 kB / 0.564 GB, free: 12.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.4994, allocations: 25.7 kB / 0.5641 GB, free: 12.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.4994, allocations: 87.77 kB / 0.5642 GB, free: 12.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.4994, allocations: 7.594 kB / 0.5642 GB, free: 12.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-06/0.4995, allocations: 3.391 kB / 0.5642 GB, free: 12.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4996, allocations: 318.8 kB / 0.5645 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.481e-05/0.4996, allocations: 11.62 kB / 0.5645 GB, free: 11.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.652e-05/0.4997, allocations: 33.2 kB / 0.5645 GB, free: 11.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.396e-05/0.4997, allocations: 10.69 kB / 0.5645 GB, free: 11.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4997, allocations: 0 / 0.5645 GB, free: 11.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001287/0.4999, allocations: 72.48 kB / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.4999, allocations: 7.438 kB / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.4999, allocations: 4.031 kB / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.4999, allocations: 0 / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.519e-05/0.5, allocations: 7.984 kB / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.5, allocations: 0 / 0.5646 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.554e-05/0.5001, allocations: 8 kB / 0.5646 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.5001, allocations: 4 kB / 0.5646 GB, free: 11.77 MB / 378.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 7.721e-05/0.5002, allocations: 121.4 kB / 0.5647 GB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.5002, allocations: 11.91 kB / 0.5647 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.5002, allocations: 3.531 kB / 0.5648 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.5002, allocations: 0 / 0.5648 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.5002, allocations: 0 / 0.5648 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.5002, allocations: 4 kB / 0.5648 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.5004, allocations: 163.6 kB / 0.5649 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.5004, allocations: 0 / 0.5649 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-05/0.5005, allocations: 4 kB / 0.5649 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.5005, allocations: 0 / 0.5649 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.485e-06/0.5005, allocations: 3.984 kB / 0.5649 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5005, allocations: 7.938 kB / 0.5649 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5005, allocations: 4 kB / 0.5649 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001558/0.5007, allocations: 150.1 kB / 0.5651 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/0.5007, allocations: 88.98 kB / 0.5652 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.5007, allocations: 3.938 kB / 0.5652 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.367e-05/0.5008, allocations: 15.34 kB / 0.5652 GB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/0.5009, allocations: 11.92 kB / 0.5652 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.5009, allocations: 7.984 kB / 0.5652 GB, free: 11.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.561e-05/0.5009, allocations: 83.66 kB / 0.5653 GB, free: 11.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5009, allocations: 0 / 0.5653 GB, free: 11.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001965/0.5011, allocations: 4 kB / 0.5653 GB, free: 11.02 MB / 378.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 7.861e-05/0.5012, allocations: 95.25 kB / 0.5654 GB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001428/0.5014, allocations: 42.97 kB / 0.5654 GB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.5014, allocations: 0 / 0.5654 GB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.478e-05/0.5014, allocations: 8 kB / 0.5654 GB, free: 10.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.5016, allocations: 11.33 kB / 0.5654 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000247/0.5018, allocations: 136.5 kB / 0.5656 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.5021, allocations: 0.677 MB / 0.5662 GB, free: 10 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.722e-05/0.5021, allocations: 4 kB / 0.5662 GB, free: 10 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.5021, allocations: 7.438 kB / 0.5662 GB, free: 9.992 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.5021, allocations: 0 / 0.5662 GB, free: 9.992 MB / 378.7 MB Notification: Performance of Templates: time 0.001963/0.5041, allocations: 493.4 kB / 0.5667 GB, free: 9.527 MB / 378.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/jenkins/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