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.001025/0.001025, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001435/0.001435, allocations: 169.5 kB / 24.91 MB, free: 8.773 MB / 18.57 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 1.041/1.041, allocations: 177 MB / 205.2 MB, free: 5.453 MB / 186.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.3045/0.3045, allocations: 34.87 MB / 296.6 MB, free: 452 kB / 266.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 2.635e-06/2.635e-06, allocations: 0 / 325.9 MB, free: 7.109 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.999e-05/3.262e-05, allocations: 8.766 kB / 325.9 MB, free: 7.102 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002404/0.002436, allocations: 1.545 MB / 327.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000744/0.00318, allocations: 474.7 kB / 328 MB, free: 5.078 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.14e-05/0.003242, allocations: 4 kB / 328 MB, free: 5.074 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.133e-05/0.003273, allocations: 7.938 kB / 328 MB, free: 5.066 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.606e-05/0.003329, allocations: 3.938 kB / 328 MB, free: 5.062 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/0.003545, allocations: 23.91 kB / 328 MB, free: 5.039 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.003649, allocations: 43.84 kB / 328 MB, free: 4.996 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.086e-05/0.00373, allocations: 11.92 kB / 328 MB, free: 4.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.003883, allocations: 27.92 kB / 328.1 MB, free: 4.957 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.544e-05/0.003939, allocations: 11.97 kB / 328.1 MB, free: 4.945 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.003953, allocations: 0 / 328.1 MB, free: 4.945 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.611e-05/0.004009, allocations: 12 kB / 328.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.334e-05/0.004023, allocations: 3.938 kB / 328.1 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.846e-05/0.004041, allocations: 15.98 kB / 328.1 MB, free: 4.914 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.004147, allocations: 35.83 kB / 328.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.00415, allocations: 0 / 328.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.004151, allocations: 4 kB / 328.2 MB, free: 4.875 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.004155, allocations: 0 / 328.2 MB, free: 4.875 MB / 298.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.0003064/0.004462, allocations: 246.9 kB / 328.4 MB, free: 4.613 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.004496, allocations: 8.031 kB / 328.4 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.004616, allocations: 12.92 kB / 328.4 MB, free: 4.594 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001793/0.004796, allocations: 121.7 kB / 328.5 MB, free: 4.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.004807, allocations: 4.375 kB / 328.5 MB, free: 4.445 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.004819, allocations: 8.375 kB / 328.6 MB, free: 4.438 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001493/0.004969, allocations: 90.36 kB / 328.6 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.004977, allocations: 192 / 328.6 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-06/0.004985, allocations: 384 / 328.6 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.004992, allocations: 3.938 kB / 328.6 MB, free: 4.324 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.535e-05/0.005017, allocations: 4 kB / 328.6 MB, free: 4.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002195/0.005237, allocations: 156.2 kB / 328.8 MB, free: 4.152 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.598e-05/0.005283, allocations: 26.59 kB / 328.8 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.334e-05/0.005296, allocations: 12.92 kB / 328.8 MB, free: 4.102 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.005308, allocations: 0 / 328.8 MB, free: 4.102 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.005328, allocations: 30.56 kB / 328.9 MB, free: 4.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 2.746e-06/0.005331, allocations: 3.984 kB / 328.9 MB, free: 4.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001076/0.005438, allocations: 45.56 kB / 328.9 MB, free: 4.008 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.005479, allocations: 81.11 kB / 329 MB, free: 3.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.58e-05/0.005545, allocations: 114.7 kB / 329.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.005562, allocations: 25.7 kB / 329.1 MB, free: 3.754 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.263e-05/0.005594, allocations: 84.14 kB / 329.2 MB, free: 3.668 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.139e-05/0.005616, allocations: 3.953 kB / 329.2 MB, free: 3.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.005649, allocations: 25.81 kB / 329.2 MB, free: 3.633 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.521e-05/0.005745, allocations: 318.8 kB / 329.6 MB, free: 3.312 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.129e-05/0.005756, allocations: 0 / 329.6 MB, free: 3.312 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.863e-05/0.005785, allocations: 43.36 kB / 329.6 MB, free: 3.258 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.954e-05/0.005814, allocations: 20.83 kB / 329.6 MB, free: 3.234 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.005817, allocations: 0 / 329.6 MB, free: 3.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.509e-05/0.005872, allocations: 41.62 kB / 329.7 MB, free: 3.188 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.005884, allocations: 4 kB / 329.7 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.005891, allocations: 4 kB / 329.7 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.005903, allocations: 3.938 kB / 329.7 MB, free: 3.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.7e-05/0.00596, allocations: 3.984 kB / 329.7 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.005965, allocations: 8.031 kB / 329.7 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.521e-05/0.00599, allocations: 4 kB / 329.7 MB, free: 3.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-06/0.005995, allocations: 0 / 329.7 MB, free: 3.16 MB / 298.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.915e-05/0.006054, allocations: 105.8 kB / 329.8 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.00607, allocations: 7.984 kB / 329.8 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.242e-05/0.006093, allocations: 7.625 kB / 329.8 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.006096, allocations: 3.938 kB / 329.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.006098, allocations: 4 kB / 329.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.006101, allocations: 0 / 329.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.431e-05/0.006185, allocations: 65.89 kB / 329.9 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.006186, allocations: 4 kB / 329.9 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.616e-05/0.006202, allocations: 4 kB / 329.9 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.006204, allocations: 3.938 kB / 329.9 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.006209, allocations: 4 kB / 329.9 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.00621, allocations: 0 / 329.9 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.006211, allocations: 0 / 329.9 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.265e-05/0.006294, allocations: 139.5 kB / 330 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.925e-06/0.006302, allocations: 7.984 kB / 330 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.006319, allocations: 4 kB / 330 MB, free: 2.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.729e-05/0.006357, allocations: 8.016 kB / 330 MB, free: 2.754 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.438e-05/0.006401, allocations: 11.92 kB / 330.1 MB, free: 2.742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.006405, allocations: 0 / 330.1 MB, free: 2.742 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.747e-05/0.006422, allocations: 16.84 kB / 330.1 MB, free: 2.723 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006422, allocations: 0 / 330.1 MB, free: 2.723 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001142/0.006536, allocations: 8 kB / 330.1 MB, free: 2.715 MB / 298.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 0.0001008/0.006637, allocations: 78.98 kB / 330.2 MB, free: 2.633 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.019e-05/0.006717, allocations: 12.86 kB / 330.2 MB, free: 2.617 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.006723, allocations: 4.75 kB / 330.2 MB, free: 2.613 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.894e-05/0.006742, allocations: 16.8 kB / 330.2 MB, free: 2.594 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001205/0.006862, allocations: 7.781 kB / 330.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004235/0.007286, allocations: 145.2 kB / 330.3 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.596e-05/0.007332, allocations: 59.34 kB / 330.4 MB, free: 2.344 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.472e-05/0.007356, allocations: 240 / 330.4 MB, free: 2.344 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.96e-05/0.007416, allocations: 55.38 kB / 330.5 MB, free: 2.289 MB / 298.7 MB Notification: Performance of SimCode: time 5.72e-07/0.007417, allocations: 0 / 330.5 MB, free: 2.289 MB / 298.7 MB Notification: Performance of Templates: time 0.002325/0.009742, allocations: 0.6703 MB / 331.1 MB, free: 1.633 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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8311885809525847]