Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007669/0.0007669, allocations: 86.52 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1956/0.1956, allocations: 45.14 MB / 383.7 MB, free: 280 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.42e-05/1.41e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 63.25 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3655/0.4719, allocations: 86.53 MB / 0.5889 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.4722, allocations: 62.72 kB / 0.5889 GB, free: 15.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003131/0.4754, allocations: 1.078 MB / 0.59 GB, free: 15.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4754, allocations: 4 kB / 0.59 GB, free: 15.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.4754, allocations: 0 / 0.59 GB, free: 15.03 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.00033/0.4757, allocations: 342.4 kB / 0.5903 GB, free: 14.65 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.4758, allocations: 12.03 kB / 0.5903 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.4759, allocations: 15.3 kB / 0.5903 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.4761, allocations: 174.9 kB / 0.5905 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.4761, allocations: 4 kB / 0.5905 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-06/0.4761, allocations: 0 / 0.5905 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.777e-05/0.4762, allocations: 11.25 kB / 0.5905 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.218e-05/0.4763, allocations: 58.45 kB / 0.5906 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.4763, allocations: 0 / 0.5906 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.4763, allocations: 0 / 0.5906 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.4763, allocations: 0 / 0.5906 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003522/0.4767, allocations: 245.3 kB / 0.5908 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.407e-05/0.4767, allocations: 26 kB / 0.5908 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.127e-05/0.4768, allocations: 12.05 kB / 0.5908 GB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.4768, allocations: 4 kB / 0.5908 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.4768, allocations: 30.56 kB / 0.5909 GB, free: 13.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 2.284e-06/0.4768, allocations: 4 kB / 0.5909 GB, free: 13.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.000137/0.477, allocations: 47.8 kB / 0.5909 GB, free: 13.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/0.477, allocations: 77.11 kB / 0.591 GB, free: 13.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.4771, allocations: 100.4 kB / 0.5911 GB, free: 13.74 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.4771, allocations: 29.7 kB / 0.5911 GB, free: 13.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.643e-05/0.4772, allocations: 91.36 kB / 0.5912 GB, free: 13.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.4772, allocations: 3.062 kB / 0.5912 GB, free: 13.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-06/0.4772, allocations: 0 / 0.5912 GB, free: 13.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.4773, allocations: 326.8 kB / 0.5915 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.917e-05/0.4773, allocations: 7.5 kB / 0.5915 GB, free: 13.28 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.292e-05/0.4773, allocations: 16.91 kB / 0.5915 GB, free: 13.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.077e-05/0.4774, allocations: 7.375 kB / 0.5915 GB, free: 13.26 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4774, allocations: 0 / 0.5915 GB, free: 13.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.191e-05/0.4775, allocations: 53.16 kB / 0.5916 GB, free: 13.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.4775, allocations: 4 kB / 0.5916 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.4775, allocations: 0 / 0.5916 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.4775, allocations: 4 kB / 0.5916 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.836e-05/0.4776, allocations: 8.031 kB / 0.5916 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.4776, allocations: 7.984 kB / 0.5916 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.943e-05/0.4777, allocations: 8 kB / 0.5916 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.4777, allocations: 0 / 0.5916 GB, free: 13.17 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 () * 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 6.951e-05/0.4778, allocations: 108.9 kB / 0.5917 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.644e-05/0.4778, allocations: 3.984 kB / 0.5917 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.4778, allocations: 7.656 kB / 0.5917 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.4778, allocations: 4 kB / 0.5917 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4779, allocations: 4 kB / 0.5917 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.4779, allocations: 7.875 kB / 0.5918 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.478, allocations: 137.4 kB / 0.5919 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.478, allocations: 3.953 kB / 0.5919 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.742e-05/0.478, allocations: 4 kB / 0.5919 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4781, allocations: 0 / 0.5919 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-06/0.4781, allocations: 0 / 0.5919 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.4781, allocations: 0 / 0.5919 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.4781, allocations: 4 kB / 0.5919 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.4782, allocations: 146.7 kB / 0.592 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.4782, allocations: 85.06 kB / 0.5921 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.4783, allocations: 3.984 kB / 0.5921 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.27e-05/0.4783, allocations: 8 kB / 0.5921 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.4784, allocations: 7.984 kB / 0.5921 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.4784, allocations: 4.031 kB / 0.5921 GB, free: 12.58 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.544e-05/0.4784, allocations: 86.64 kB / 0.5922 GB, free: 12.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4784, allocations: 4 kB / 0.5922 GB, free: 12.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001995/0.4787, allocations: 4 kB / 0.5922 GB, free: 12.49 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) * 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.0001007/0.4788, allocations: 91.25 kB / 0.5923 GB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.773e-05/0.4789, allocations: 18.62 kB / 0.5923 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4789, allocations: 0 / 0.5923 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.002e-05/0.4789, allocations: 10.81 kB / 0.5923 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001333/0.479, allocations: 8.062 kB / 0.5924 GB, free: 12.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001886/0.4792, allocations: 58.88 kB / 0.5924 GB, free: 12.29 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.4794, allocations: 0.6846 MB / 0.5931 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.241e-05/0.4795, allocations: 4.234 kB / 0.5931 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.685e-05/0.4795, allocations: 10.62 kB / 0.5931 GB, free: 11.56 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4795, allocations: 3.938 kB / 0.5931 GB, free: 11.56 MB / 394.7 MB Notification: Performance of Templates: time 0.002134/0.4817, allocations: 454.4 kB / 0.5935 GB, free: 11.12 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches