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.0009064/0.0009063, allocations: 180.5 kB / 17.41 MB, free: 4.406 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.306/1.306, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007125/0.0007125, allocations: 86.36 kB / 271.9 MB, free: 8.25 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.3466/0.3466, allocations: 43.55 MB / 363.7 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004072/0.0004072, allocations: 16 kB / 432.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1344, allocations: 58.85 MB / 491.4 MB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3593/0.4938, allocations: 85.16 MB / 0.5631 GB, free: 1.113 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001751/0.494, allocations: 63.97 kB / 0.5631 GB, free: 1.051 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002247/0.4962, allocations: 0.9395 MB / 0.5641 GB, free: 128 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4963, allocations: 4 kB / 0.5641 GB, free: 124 kB / 378.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.4963, allocations: 0 / 0.5641 GB, free: 124 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.0004102/0.4967, allocations: 351 kB / 0.5644 GB, free: 15.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.4968, allocations: 8.031 kB / 0.5644 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.655e-05/0.4968, allocations: 5.812 kB / 0.5644 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.497, allocations: 176.2 kB / 0.5646 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.497, allocations: 384 / 0.5646 GB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.497, allocations: 8.375 kB / 0.5646 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001681/0.4972, allocations: 59.95 kB / 0.5646 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4972, allocations: 192 / 0.5646 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.4972, allocations: 3.938 kB / 0.5647 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.4972, allocations: 4 kB / 0.5647 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.812e-05/0.4973, allocations: 19.98 kB / 0.5647 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003906/0.4977, allocations: 272.9 kB / 0.5649 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.416e-05/0.4978, allocations: 34.5 kB / 0.565 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.763e-05/0.4979, allocations: 12.92 kB / 0.565 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.4979, allocations: 7.984 kB / 0.565 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.4979, allocations: 39.38 kB / 0.565 GB, free: 14.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.4979, allocations: 3.719 kB / 0.565 GB, free: 14.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002389/0.4982, allocations: 65.61 kB / 0.5651 GB, free: 14.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.4982, allocations: 81.23 kB / 0.5652 GB, free: 14.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.778e-05/0.4983, allocations: 113.8 kB / 0.5653 GB, free: 14.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.4983, allocations: 25.7 kB / 0.5653 GB, free: 14.65 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.612e-05/0.4984, allocations: 92.12 kB / 0.5654 GB, free: 14.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.4984, allocations: 3.906 kB / 0.5654 GB, free: 14.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.4984, allocations: 0 / 0.5654 GB, free: 14.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4986, allocations: 310.8 kB / 0.5657 GB, free: 14.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.109e-05/0.4986, allocations: 19.98 kB / 0.5657 GB, free: 14.22 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.906e-05/0.4987, allocations: 29.7 kB / 0.5657 GB, free: 14.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.981e-05/0.4988, allocations: 28.84 kB / 0.5658 GB, free: 14.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4988, allocations: 0 / 0.5658 GB, free: 14.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001215/0.4989, allocations: 69.56 kB / 0.5658 GB, free: 14.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.4989, allocations: 8.031 kB / 0.5658 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4989, allocations: 0 / 0.5658 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.499, allocations: 3.094 kB / 0.5658 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.7e-05/0.499, allocations: 7.984 kB / 0.5659 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.499, allocations: 0 / 0.5659 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.661e-05/0.4991, allocations: 15.03 kB / 0.5659 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.4991, allocations: 7.984 kB / 0.5659 GB, free: 14.05 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 7.95e-05/0.4992, allocations: 113.8 kB / 0.566 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.4992, allocations: 4 kB / 0.566 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.648e-05/0.4993, allocations: 7.531 kB / 0.566 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.4993, allocations: 0 / 0.566 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.4993, allocations: 0 / 0.566 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.4993, allocations: 4 kB / 0.566 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001468/0.4994, allocations: 161.6 kB / 0.5662 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.4994, allocations: 0 / 0.5662 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.909e-05/0.4995, allocations: 7.984 kB / 0.5662 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.4995, allocations: 0 / 0.5662 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.547e-06/0.4995, allocations: 8 kB / 0.5662 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.4995, allocations: 4 kB / 0.5662 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4995, allocations: 3.938 kB / 0.5662 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/0.4997, allocations: 150.5 kB / 0.5663 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.773e-05/0.4997, allocations: 85 kB / 0.5664 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.4998, allocations: 0 / 0.5664 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.469e-05/0.4999, allocations: 16.03 kB / 0.5664 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/0.4999, allocations: 11.97 kB / 0.5664 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.4999, allocations: 4 kB / 0.5664 GB, free: 13.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.094e-05/0.5, allocations: 83.27 kB / 0.5665 GB, free: 13.31 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5, allocations: 0 / 0.5665 GB, free: 13.31 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001962/0.5002, allocations: 12 kB / 0.5665 GB, free: 13.3 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 9.181e-05/0.5003, allocations: 100.3 kB / 0.5666 GB, free: 13.19 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.5004, allocations: 35.91 kB / 0.5666 GB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5004, allocations: 0 / 0.5666 GB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.604e-05/0.5005, allocations: 12 kB / 0.5667 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/0.5007, allocations: 10.67 kB / 0.5667 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000322/0.501, allocations: 169.2 kB / 0.5668 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.5013, allocations: 0.677 MB / 0.5675 GB, free: 12.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.124e-05/0.5013, allocations: 11.98 kB / 0.5675 GB, free: 12.23 MB / 394.7 MB Notification: Performance of SimCode: time 2.1e-07/0.5013, allocations: 0 / 0.5675 GB, free: 12.23 MB / 394.7 MB Notification: Performance of Templates: time 0.001788/0.5031, allocations: 0.6228 MB / 0.5681 GB, free: 11.62 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