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.001447/0.001446, allocations: 189.2 kB / 16.41 MB, free: 5.727 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.868/1.868, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001137/0.001137, allocations: 88.44 kB / 270.9 MB, free: 8.387 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.538/0.538, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004679/0.0004679, allocations: 15.98 kB / 431.4 MB, free: 5.961 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1246, allocations: 58.85 MB / 490.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4409/0.5655, allocations: 85.14 MB / 0.5619 GB, free: 1.465 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.5657, allocations: 71.25 kB / 0.5619 GB, free: 1.398 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003444/0.5692, allocations: 0.9465 MB / 0.5628 GB, free: 476 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5692, allocations: 0 / 0.5628 GB, free: 476 kB / 378.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.5692, allocations: 0 / 0.5628 GB, free: 476 kB / 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.0003736/0.5696, allocations: 350.8 kB / 0.5632 GB, free: 80 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.5697, allocations: 12.03 kB / 0.5632 GB, free: 68 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.5697, allocations: 0 / 0.5632 GB, free: 68 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.5699, allocations: 170.5 kB / 0.5634 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.5699, allocations: 4 kB / 0.5634 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.5699, allocations: 0 / 0.5634 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.5701, allocations: 59.39 kB / 0.5634 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.5702, allocations: 0 / 0.5634 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.5702, allocations: 4 kB / 0.5634 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.5702, allocations: 0 / 0.5634 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.5704, allocations: 32.95 kB / 0.5635 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004742/0.5709, allocations: 264.9 kB / 0.5637 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.571, allocations: 26.64 kB / 0.5637 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.571, allocations: 4 kB / 0.5637 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.5711, allocations: 34.56 kB / 0.5638 GB, free: 15.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 2.996e-06/0.5711, allocations: 0 / 0.5638 GB, free: 15.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003561/0.5715, allocations: 85.22 kB / 0.5638 GB, free: 15.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.5715, allocations: 77.11 kB / 0.5639 GB, free: 15.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.29e-05/0.5716, allocations: 101.1 kB / 0.564 GB, free: 15.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.5717, allocations: 29.7 kB / 0.564 GB, free: 15.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.733e-05/0.5718, allocations: 154.6 kB / 0.5642 GB, free: 14.89 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/0.5718, allocations: 11.89 kB / 0.5642 GB, free: 14.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.5718, allocations: 0 / 0.5642 GB, free: 14.88 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5719, allocations: 314.8 kB / 0.5645 GB, free: 14.56 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.25e-05/0.572, allocations: 12 kB / 0.5645 GB, free: 14.55 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.5721, allocations: 33.7 kB / 0.5645 GB, free: 14.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.541e-05/0.5722, allocations: 15.98 kB / 0.5646 GB, free: 14.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.5722, allocations: 3.938 kB / 0.5646 GB, free: 14.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002064/0.5725, allocations: 53.69 kB / 0.5646 GB, free: 14.43 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.5725, allocations: 4 kB / 0.5646 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.5725, allocations: 0 / 0.5646 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.5725, allocations: 1.25 kB / 0.5646 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.501e-05/0.5726, allocations: 16.02 kB / 0.5646 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.289e-06/0.5727, allocations: 0 / 0.5646 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.5728, allocations: 11.98 kB / 0.5647 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.012e-05/0.5728, allocations: 0.75 kB / 0.5647 GB, free: 14.4 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.0001066/0.5729, allocations: 121.8 kB / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.573, allocations: 0 / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.573, allocations: 11.53 kB / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.573, allocations: 7.938 kB / 0.5648 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.573, allocations: 0 / 0.5648 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.573, allocations: 0 / 0.5648 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002069/0.5733, allocations: 162.5 kB / 0.5649 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5733, allocations: 0 / 0.5649 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.513e-05/0.5734, allocations: 11.92 kB / 0.565 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.5734, allocations: 4 kB / 0.565 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.5734, allocations: 0 / 0.565 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.5734, allocations: 2.188 kB / 0.565 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.5734, allocations: 0 / 0.565 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002549/0.5737, allocations: 163.4 kB / 0.5651 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.5737, allocations: 80.17 kB / 0.5652 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.5738, allocations: 4 kB / 0.5652 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.5739, allocations: 11.98 kB / 0.5652 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.183e-05/0.574, allocations: 12.02 kB / 0.5652 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-06/0.574, allocations: 0 / 0.5652 GB, free: 13.74 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.79e-05/0.5741, allocations: 83.28 kB / 0.5653 GB, free: 13.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5741, allocations: 0 / 0.5653 GB, free: 13.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002883/0.5744, allocations: 8 kB / 0.5653 GB, free: 13.65 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.00012/0.5745, allocations: 95.23 kB / 0.5654 GB, free: 13.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002214/0.5748, allocations: 39.92 kB / 0.5654 GB, free: 13.51 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5748, allocations: 0 / 0.5654 GB, free: 13.51 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.652e-05/0.5749, allocations: 12 kB / 0.5654 GB, free: 13.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001665/0.5751, allocations: 7.953 kB / 0.5655 GB, free: 13.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003715/0.5754, allocations: 164.5 kB / 0.5656 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.5757, allocations: 0.6849 MB / 0.5663 GB, free: 12.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.552e-05/0.5758, allocations: 11.42 kB / 0.5663 GB, free: 12.58 MB / 394.7 MB Notification: Performance of SimCode: time 2.725e-06/0.5758, allocations: 0.5469 kB / 0.5663 GB, free: 12.58 MB / 394.7 MB Notification: Performance of Templates: time 0.002428/0.5782, allocations: 0.6306 MB / 0.5669 GB, free: 11.96 MB / 394.7 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