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.0009556/0.0009557, allocations: 201.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.165/1.165, allocations: 227.2 MB / 245 MB, free: 5.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008329/0.0008329, allocations: 102 kB / 297.3 MB, free: 5.984 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2578/0.2578, allocations: 45.23 MB / 394.7 MB, free: 31.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.000234, allocations: 8 kB / 468.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2374, allocations: 63.25 MB / 0.5192 GB, free: 37.47 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0962/0.3336, allocations: 87.27 MB / 0.6044 GB, free: 196 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.3338, allocations: 59.97 kB / 0.6045 GB, free: 136 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002957/0.3368, allocations: 1.092 MB / 0.6055 GB, free: 15.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3368, allocations: 0 / 0.6055 GB, free: 15.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.3368, allocations: 0 / 0.6055 GB, free: 15.05 MB / 426.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.0003528/0.3372, allocations: 363.1 kB / 0.6059 GB, free: 14.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.3372, allocations: 8.031 kB / 0.6059 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.3374, allocations: 12 kB / 0.6059 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.3375, allocations: 182.8 kB / 0.6061 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.3375, allocations: 4 kB / 0.6061 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.3375, allocations: 0 / 0.6061 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.3377, allocations: 63.39 kB / 0.6061 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.3377, allocations: 0 / 0.6061 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.3377, allocations: 0 / 0.6061 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.3377, allocations: 0 / 0.6061 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.028e-05/0.3378, allocations: 23.98 kB / 0.6062 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003536/0.3382, allocations: 268.9 kB / 0.6064 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.648e-05/0.3383, allocations: 34.56 kB / 0.6064 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.3383, allocations: 0 / 0.6064 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.3383, allocations: 34.56 kB / 0.6065 GB, free: 13.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.3383, allocations: 4.062 kB / 0.6065 GB, free: 13.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002261/0.3386, allocations: 77.52 kB / 0.6066 GB, free: 13.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.3386, allocations: 77.11 kB / 0.6066 GB, free: 13.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.419e-05/0.3387, allocations: 101 kB / 0.6067 GB, free: 13.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.3387, allocations: 29.7 kB / 0.6068 GB, free: 13.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.295e-05/0.3388, allocations: 84.14 kB / 0.6068 GB, free: 13.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.3388, allocations: 3.906 kB / 0.6068 GB, free: 13.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/0.3388, allocations: 4 kB / 0.6068 GB, free: 13.49 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.3389, allocations: 326.9 kB / 0.6072 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.703e-05/0.3389, allocations: 12 kB / 0.6072 GB, free: 13.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.174e-05/0.339, allocations: 29.7 kB / 0.6072 GB, free: 13.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.771e-05/0.3391, allocations: 11.98 kB / 0.6072 GB, free: 13.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3391, allocations: 0 / 0.6072 GB, free: 13.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001285/0.3392, allocations: 65.75 kB / 0.6073 GB, free: 13.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.3392, allocations: 6.656 kB / 0.6073 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3392, allocations: 4.047 kB / 0.6073 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.3393, allocations: 7.969 kB / 0.6073 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.753e-05/0.3393, allocations: 4 kB / 0.6073 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3393, allocations: 3.938 kB / 0.6073 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.278e-05/0.3394, allocations: 15.98 kB / 0.6073 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.3394, allocations: 0 / 0.6073 GB, free: 13 MB / 426.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 6.861e-05/0.3395, allocations: 117.8 kB / 0.6074 GB, free: 12.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.58e-05/0.3395, allocations: 3.906 kB / 0.6074 GB, free: 12.87 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.3396, allocations: 7.531 kB / 0.6074 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3396, allocations: 0 / 0.6074 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3396, allocations: 0 / 0.6074 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3396, allocations: 0 / 0.6074 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.3397, allocations: 169.6 kB / 0.6076 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3397, allocations: 0 / 0.6076 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.285e-05/0.3398, allocations: 11.98 kB / 0.6076 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3398, allocations: 3.938 kB / 0.6076 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3398, allocations: 0 / 0.6076 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3398, allocations: 0 / 0.6076 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3398, allocations: 0 / 0.6076 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001658/0.34, allocations: 159.4 kB / 0.6078 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.045e-05/0.34, allocations: 81.11 kB / 0.6078 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.3401, allocations: 0 / 0.6078 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.671e-05/0.3401, allocations: 15.98 kB / 0.6079 GB, free: 12.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.3402, allocations: 7.984 kB / 0.6079 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.698e-06/0.3402, allocations: 0 / 0.6079 GB, free: 12.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.208e-05/0.3403, allocations: 87.28 kB / 0.6079 GB, free: 12.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3403, allocations: 0 / 0.6079 GB, free: 12.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002019/0.3405, allocations: 8.031 kB / 0.608 GB, free: 12.24 MB / 426.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.317e-05/0.3406, allocations: 95.23 kB / 0.608 GB, free: 12.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.3407, allocations: 27.98 kB / 0.6081 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3407, allocations: 0 / 0.6081 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.413e-05/0.3408, allocations: 23.92 kB / 0.6081 GB, free: 12.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.3409, allocations: 8.016 kB / 0.6081 GB, free: 12.08 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.3412, allocations: 132.8 kB / 0.6082 GB, free: 11.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.3414, allocations: 0.6809 MB / 0.6089 GB, free: 11.21 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 3.196e-05/0.3414, allocations: 11.89 kB / 0.6089 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.3415, allocations: 11.44 kB / 0.6089 GB, free: 11.19 MB / 426.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3415, allocations: 4 kB / 0.6089 GB, free: 11.19 MB / 426.7 MB Notification: Performance of Templates: time 0.002102/0.3436, allocations: 486.1 kB / 0.6094 GB, free: 10.72 MB / 426.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