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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001028/0.001028, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001218/0.002245, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006658/0.0006658, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009775/0.001643, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9915/0.9915, allocations: 177.5 MB / 190 MB, free: 4.773 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1007/1.092, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.294/0.294, allocations: 34.88 MB / 279.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02879/0.3228, allocations: 13.24 MB / 292.8 MB, free: 6.363 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 294.1 MB, free: 5.074 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.529e-05/1.722e-05, allocations: 7.719 kB / 294.1 MB, free: 5.066 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001794/0.001812, allocations: 1.546 MB / 295.6 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005435/0.002355, allocations: 474.7 kB / 296.1 MB, free: 3.043 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.998e-05/0.002395, allocations: 0 / 296.1 MB, free: 3.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.002414, allocations: 11.88 kB / 296.1 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.131e-05/0.002435, allocations: 4 kB / 296.1 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001107/0.002546, allocations: 35.83 kB / 296.2 MB, free: 2.992 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.312e-05/0.002619, allocations: 31.88 kB / 296.2 MB, free: 2.961 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.282e-05/0.002682, allocations: 11.92 kB / 296.2 MB, free: 2.949 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.002791, allocations: 31.97 kB / 296.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.874e-05/0.00284, allocations: 19.92 kB / 296.2 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.002851, allocations: 0 / 296.2 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.787e-05/0.002899, allocations: 8 kB / 296.3 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.002917, allocations: 4 kB / 296.3 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.294e-05/0.00293, allocations: 8 kB / 296.3 MB, free: 2.879 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.995e-05/0.00303, allocations: 43.77 kB / 296.3 MB, free: 2.836 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.003041, allocations: 0 / 296.3 MB, free: 2.836 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.003042, allocations: 0 / 296.3 MB, free: 2.836 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.003052, allocations: 0 / 296.3 MB, free: 2.836 MB / 282.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.0003584/0.00341, allocations: 249.8 kB / 296.6 MB, free: 2.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.003442, allocations: 8.922 kB / 296.6 MB, free: 2.562 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.003589, allocations: 90.03 kB / 296.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.003732, allocations: 125.7 kB / 296.8 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.003741, allocations: 4.375 kB / 296.8 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.003751, allocations: 384 / 296.8 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.003878, allocations: 98.3 kB / 296.9 MB, free: 2.188 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.003889, allocations: 192 / 296.9 MB, free: 2.188 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.003896, allocations: 4.375 kB / 296.9 MB, free: 2.184 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.003903, allocations: 3.938 kB / 296.9 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.029e-05/0.003923, allocations: 4 kB / 296.9 MB, free: 2.176 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002057/0.004129, allocations: 156.2 kB / 297 MB, free: 2.008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.389e-05/0.004173, allocations: 18.58 kB / 297.1 MB, free: 1.98 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.458e-05/0.004187, allocations: 12.8 kB / 297.1 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.266e-05/0.0042, allocations: 8.062 kB / 297.1 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.004224, allocations: 34.56 kB / 297.1 MB, free: 1.914 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.004226, allocations: 0 / 297.1 MB, free: 1.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001135/0.004339, allocations: 41.67 kB / 297.1 MB, free: 1.867 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.004367, allocations: 51.41 kB / 297.2 MB, free: 1.805 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.338e-05/0.00443, allocations: 118.7 kB / 297.3 MB, free: 1.676 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.004448, allocations: 25.7 kB / 297.3 MB, free: 1.645 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.427e-05/0.004482, allocations: 88.14 kB / 297.4 MB, free: 1.555 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.004497, allocations: 7.922 kB / 297.4 MB, free: 1.547 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.004524, allocations: 17.83 kB / 297.5 MB, free: 1.523 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.946e-05/0.004603, allocations: 314.8 kB / 297.8 MB, free: 1.207 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.699e-06/0.004613, allocations: 4 kB / 297.8 MB, free: 1.203 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.554e-05/0.004638, allocations: 43.41 kB / 297.8 MB, free: 1.148 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.14e-05/0.00466, allocations: 8.859 kB / 297.8 MB, free: 1.137 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.004662, allocations: 4 kB / 297.8 MB, free: 1.133 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.281e-05/0.004704, allocations: 37.69 kB / 297.9 MB, free: 1.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.004715, allocations: 4 kB / 297.9 MB, free: 1.086 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.004719, allocations: 0 / 297.9 MB, free: 1.086 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.004732, allocations: 3.938 kB / 297.9 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.073e-05/0.004793, allocations: 11.92 kB / 297.9 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.004797, allocations: 4.031 kB / 297.9 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.261e-05/0.004819, allocations: 11.95 kB / 297.9 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.004825, allocations: 4 kB / 297.9 MB, free: 1.051 MB / 282.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 5.802e-05/0.004883, allocations: 113.8 kB / 298 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.004896, allocations: 4 kB / 298 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.00492, allocations: 7.625 kB / 298 MB, free: 0.918 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.004923, allocations: 4.078 kB / 298 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.004925, allocations: 0 / 298 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.00493, allocations: 7.984 kB / 298 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.98e-05/0.00501, allocations: 65.89 kB / 298.1 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-07/0.00501, allocations: 4 kB / 298.1 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.533e-05/0.005026, allocations: 4 kB / 298.1 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.1e-06/0.005031, allocations: 3.938 kB / 298.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.005033, allocations: 3.984 kB / 298.1 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.005039, allocations: 4 kB / 298.1 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.005041, allocations: 3.938 kB / 298.1 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.005041, allocations: 0 / 298.1 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.451e-05/0.005126, allocations: 131.5 kB / 298.2 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.005142, allocations: 4 kB / 298.2 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.382e-05/0.005176, allocations: 8.031 kB / 298.3 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.005219, allocations: 11.92 kB / 298.3 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.005222, allocations: 0 / 298.3 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.88e-05/0.005241, allocations: 21.77 kB / 298.3 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005241, allocations: 0 / 298.3 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001093/0.00535, allocations: 4 kB / 298.3 MB, free: 0.6055 MB / 282.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 6.754e-05/0.005418, allocations: 72.42 kB / 298.4 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.743e-05/0.005485, allocations: 16.84 kB / 298.4 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.00549, allocations: 4 kB / 298.4 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.394e-05/0.005514, allocations: 20.8 kB / 298.4 MB, free: 492 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001132/0.005627, allocations: 10.42 kB / 298.4 MB, free: 488 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006133/0.00624, allocations: 149.2 kB / 298.6 MB, free: 312 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.011e-05/0.006281, allocations: 59.28 kB / 298.6 MB, free: 232 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.076e-05/0.006301, allocations: 4 kB / 298.6 MB, free: 228 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.006357, allocations: 51.38 kB / 298.7 MB, free: 176 kB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.006358, allocations: 0 / 298.7 MB, free: 176 kB / 282.7 MB Notification: Performance of Templates: time 0.002175/0.008533, allocations: 0.6932 MB / 299.4 MB, free: 15.48 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7236180417239666]