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.001148/0.001148, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009592/0.0009594, allocations: 108.1 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3872/0.3872, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 63.84 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3178, allocations: 62.02 MB / 0.5151 GB, free: 37.73 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002596/0.3204, allocations: 1.521 MB / 0.5166 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006199/0.321, allocations: 461.3 kB / 0.5171 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.072e-05/0.3211, allocations: 0 / 0.5171 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.3211, allocations: 3.938 kB / 0.5171 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.646e-05/0.3211, allocations: 2.938 kB / 0.5171 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001474/0.3213, allocations: 14.12 kB / 0.5171 GB, free: 36.33 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.378e-05/0.3214, allocations: 36.92 kB / 0.5171 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.19e-05/0.3214, allocations: 2.969 kB / 0.5171 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.3216, allocations: 23.91 kB / 0.5172 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.876e-05/0.3216, allocations: 17.94 kB / 0.5172 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.3216, allocations: 0 / 0.5172 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.467e-05/0.3217, allocations: 9.875 kB / 0.5172 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.3217, allocations: 7.375 kB / 0.5172 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.161e-05/0.3217, allocations: 18.8 kB / 0.5172 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.664e-05/0.3218, allocations: 27.44 kB / 0.5172 GB, free: 36.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3218, allocations: 2.875 kB / 0.5172 GB, free: 36.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.3218, allocations: 4 kB / 0.5172 GB, free: 36.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.046e-06/0.3218, allocations: 0 / 0.5172 GB, free: 36.26 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.0003136/0.3221, allocations: 352.6 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.3222, allocations: 8.719 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.3223, allocations: 14.34 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.594e-05/0.3224, allocations: 170.4 kB / 0.5178 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.513e-06/0.3224, allocations: 3.062 kB / 0.5178 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.3224, allocations: 384 / 0.5178 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.3226, allocations: 67.62 kB / 0.5178 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.43e-06/0.3226, allocations: 0 / 0.5178 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.3226, allocations: 3.875 kB / 0.5178 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.3226, allocations: 0 / 0.5178 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.53e-05/0.3227, allocations: 22.67 kB / 0.5178 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002608/0.3229, allocations: 269.7 kB / 0.5181 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.112e-05/0.323, allocations: 33.14 kB / 0.5181 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.321e-05/0.3231, allocations: 16.81 kB / 0.5182 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.3231, allocations: 2.531 kB / 0.5182 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.3231, allocations: 30.56 kB / 0.5182 GB, free: 35.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3231, allocations: 0 / 0.5182 GB, free: 35.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001744/0.3233, allocations: 70.59 kB / 0.5183 GB, free: 35.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.3233, allocations: 77.11 kB / 0.5183 GB, free: 35.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.387e-05/0.3234, allocations: 112.4 kB / 0.5184 GB, free: 35.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.906e-06/0.3234, allocations: 28.61 kB / 0.5185 GB, free: 34.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.152e-05/0.3234, allocations: 84.14 kB / 0.5185 GB, free: 34.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.819e-06/0.3235, allocations: 10.75 kB / 0.5186 GB, free: 34.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.3235, allocations: 19.77 kB / 0.5186 GB, free: 34.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.144e-05/0.3235, allocations: 315 kB / 0.5189 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.111e-05/0.3236, allocations: 15.56 kB / 0.5189 GB, free: 34.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.338e-05/0.3236, allocations: 25.38 kB / 0.5189 GB, free: 34.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.584e-05/0.3237, allocations: 35 kB / 0.5189 GB, free: 34.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3237, allocations: 0 / 0.5189 GB, free: 34.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001033/0.3238, allocations: 59.81 kB / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/0.3238, allocations: 7.219 kB / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-06/0.3238, allocations: 6.734 kB / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.462e-06/0.3239, allocations: 0 / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.656e-05/0.3239, allocations: 2.969 kB / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.3239, allocations: 320 / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.013e-05/0.324, allocations: 9.281 kB / 0.519 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.324, allocations: 4 kB / 0.519 GB, free: 34.45 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 (hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.699e-05/0.324, allocations: 112.6 kB / 0.5191 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.3241, allocations: 6.812 kB / 0.5191 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.073e-05/0.3241, allocations: 18.31 kB / 0.5192 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.3241, allocations: 0 / 0.5192 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3241, allocations: 2.812 kB / 0.5192 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3241, allocations: 0 / 0.5192 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.3242, allocations: 162.8 kB / 0.5193 GB, free: 34.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3242, allocations: 0 / 0.5193 GB, free: 34.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.494e-05/0.3243, allocations: 10.69 kB / 0.5193 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.3243, allocations: 0 / 0.5193 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3243, allocations: 0 / 0.5193 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3243, allocations: 0 / 0.5193 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3243, allocations: 4 kB / 0.5193 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002772/0.3246, allocations: 0.7069 MB / 0.52 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.663e-05/0.3246, allocations: 81.02 kB / 0.5201 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.3246, allocations: 7.234 kB / 0.5201 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.758e-05/0.3247, allocations: 9.906 kB / 0.5201 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.223e-05/0.3248, allocations: 17.53 kB / 0.5201 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.3248, allocations: 0 / 0.5201 GB, free: 33.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.464e-05/0.3248, allocations: 92.14 kB / 0.5202 GB, free: 33.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3248, allocations: 0 / 0.5202 GB, free: 33.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000295/0.3251, allocations: 5.938 kB / 0.5202 GB, free: 33.2 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.777e-05/0.3252, allocations: 93.88 kB / 0.5203 GB, free: 33.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001284/0.3253, allocations: 29.8 kB / 0.5203 GB, free: 33.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3253, allocations: 3 kB / 0.5203 GB, free: 33.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.228e-05/0.3254, allocations: 13.05 kB / 0.5204 GB, free: 33.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.3256, allocations: 6.938 kB / 0.5204 GB, free: 33.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.3259, allocations: 227.8 kB / 0.5206 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.326, allocations: 0.6819 MB / 0.5212 GB, free: 32.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.923e-05/0.3261, allocations: 2.875 kB / 0.5213 GB, free: 32.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.859e-05/0.3261, allocations: 10.86 kB / 0.5213 GB, free: 32.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.9e-07/0.3261, allocations: 2.938 kB / 0.5213 GB, free: 32.16 MB / 378.7 MB Notification: Performance of Templates: time 0.002048/0.3281, allocations: 0.5102 MB / 0.5218 GB, free: 32.09 MB / 378.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@2/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