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.001002/0.001002, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009577/0.0009577, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.036/1.036, allocations: 177 MB / 204.8 MB, free: 5.562 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.3112/0.3112, allocations: 34.87 MB / 296.3 MB, free: 0.5547 MB / 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 1.993e-06/1.993e-06, allocations: 0 / 378.8 MB, free: 2.094 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.828e-05/3.028e-05, allocations: 2.312 kB / 378.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002995/0.003025, allocations: 1.5 MB / 380.3 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009456/0.003971, allocations: 474.7 kB / 380.7 MB, free: 112 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.004035, allocations: 0 / 380.7 MB, free: 112 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.139e-05/0.004077, allocations: 3.938 kB / 380.7 MB, free: 108 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.615e-05/0.004133, allocations: 7.875 kB / 380.7 MB, free: 100 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000287/0.00442, allocations: 31.95 kB / 380.8 MB, free: 68 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.004556, allocations: 35.86 kB / 380.8 MB, free: 32 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.004668, allocations: 7.938 kB / 380.8 MB, free: 24 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.004859, allocations: 35.97 kB / 380.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.37e-05/0.004922, allocations: 7.938 kB / 380.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.004944, allocations: 4 kB / 380.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.328e-05/0.004998, allocations: 11.98 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.005011, allocations: 0 / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.727e-05/0.005038, allocations: 15.84 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.005174, allocations: 31.91 kB / 380.9 MB, free: 15.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.005176, allocations: 4 kB / 380.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005177, allocations: 0 / 380.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.005182, allocations: 0 / 380.9 MB, free: 15.91 MB / 362.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.0004859/0.005668, allocations: 372.5 kB / 381.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.005718, allocations: 8.031 kB / 381.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.005889, allocations: 16.92 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.006094, allocations: 132.5 kB / 381.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.006108, allocations: 384 / 381.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.006128, allocations: 4.375 kB / 381.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.006334, allocations: 100 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.006346, allocations: 192 / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.006362, allocations: 4.375 kB / 381.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.006374, allocations: 3.938 kB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.421e-05/0.006418, allocations: 7.984 kB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004105/0.006828, allocations: 263.7 kB / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.234e-05/0.006911, allocations: 35 kB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.858e-05/0.006939, allocations: 7.688 kB / 381.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.006961, allocations: 0 / 381.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.006998, allocations: 45.38 kB / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/0.006999, allocations: 4 kB / 381.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.000186/0.007185, allocations: 45.59 kB / 381.9 MB, free: 14.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.007231, allocations: 81.11 kB / 382 MB, free: 14.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.007342, allocations: 169.9 kB / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.007369, allocations: 33.7 kB / 382.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.85e-05/0.007438, allocations: 126.9 kB / 382.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.007459, allocations: 7.953 kB / 382.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/0.007497, allocations: 19.38 kB / 382.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.007662, allocations: 0.4923 MB / 382.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.944e-05/0.007682, allocations: 128 / 382.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.702e-05/0.007729, allocations: 53.08 kB / 382.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.406e-05/0.007773, allocations: 23.61 kB / 382.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.007775, allocations: 0 / 382.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.492e-05/0.00786, allocations: 41.69 kB / 383 MB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.007877, allocations: 7.938 kB / 383 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.007881, allocations: 0 / 383 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.007901, allocations: 0 / 383 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.996e-05/0.007981, allocations: 4 kB / 383 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.007987, allocations: 0 / 383 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.937e-05/0.008026, allocations: 11.98 kB / 383 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.008035, allocations: 4.031 kB / 383 MB, free: 13.58 MB / 362.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 8.642e-05/0.008121, allocations: 156.6 kB / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.107e-05/0.008152, allocations: 11.89 kB / 383.2 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.00818, allocations: 7.625 kB / 383.2 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.008182, allocations: 144 / 383.2 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.008186, allocations: 0 / 383.2 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.008191, allocations: 3.984 kB / 383.2 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.00833, allocations: 120.6 kB / 383.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.008333, allocations: 3.938 kB / 383.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.384e-05/0.008367, allocations: 7.984 kB / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.00837, allocations: 4 kB / 383.3 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.00838, allocations: 3.938 kB / 383.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.008381, allocations: 3.938 kB / 383.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.008382, allocations: 0 / 383.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.008525, allocations: 187.9 kB / 383.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-06/0.008534, allocations: 3.953 kB / 383.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.008559, allocations: 11.94 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.261e-05/0.008622, allocations: 4 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.008671, allocations: 3.984 kB / 383.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.008678, allocations: 7.984 kB / 383.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.492e-05/0.008733, allocations: 131.2 kB / 383.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.008733, allocations: 3.938 kB / 383.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001381/0.008871, allocations: 8 kB / 383.7 MB, free: 12.84 MB / 362.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.956e-05/0.00894, allocations: 91.23 kB / 383.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.886e-05/0.009029, allocations: 23.69 kB / 383.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.009031, allocations: 0 / 383.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.932e-05/0.00905, allocations: 11.69 kB / 383.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.00921, allocations: 3.984 kB / 383.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005749/0.009785, allocations: 142.1 kB / 383.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.431e-05/0.009839, allocations: 59.34 kB / 384 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.817e-05/0.009867, allocations: 0 / 384 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.166e-05/0.009909, allocations: 16.5 kB / 384 MB, free: 12.43 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.00991, allocations: 0 / 384 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Templates: time 0.002871/0.01278, allocations: 0.6447 MB / 384.7 MB, free: 11.79 MB / 362.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 -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: 3.228899898007512]