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.001845/0.001845, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 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.002631/0.002631, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 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.475/1.475, allocations: 177 MB / 204.1 MB, free: 9.156 MB / 190.1 MB " [Timeout remaining time 178] 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.2219/0.2219, allocations: 34.27 MB / 294.8 MB, free: 14.52 MB / 286.1 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.014e-06/2.014e-06, allocations: 0 / 442.6 MB, free: 5.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.142e-05/3.343e-05, allocations: 6.219 kB / 442.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002978/0.003012, allocations: 1.465 MB / 444.1 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.004033, allocations: 454.8 kB / 444.6 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.538e-05/0.004109, allocations: 0 / 444.6 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.281e-05/0.004141, allocations: 3.938 kB / 444.6 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.148e-05/0.004203, allocations: 11.88 kB / 444.6 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.004487, allocations: 19.97 kB / 444.6 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001459/0.004633, allocations: 43.84 kB / 444.6 MB, free: 3.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.78e-05/0.00473, allocations: 4 kB / 444.6 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.0049, allocations: 35.84 kB / 444.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.333e-05/0.004973, allocations: 15.97 kB / 444.7 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.004993, allocations: 0 / 444.7 MB, free: 3.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.771e-05/0.005051, allocations: 12 kB / 444.7 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.389e-05/0.005065, allocations: 0 / 444.7 MB, free: 3.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.229e-05/0.005097, allocations: 15.92 kB / 444.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.005239, allocations: 39.89 kB / 444.8 MB, free: 3.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.005245, allocations: 3.984 kB / 444.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.005246, allocations: 0 / 444.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.00525, allocations: 4 kB / 444.8 MB, free: 3.176 MB / 366.1 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.0005336/0.005784, allocations: 274.2 kB / 445 MB, free: 2.879 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.005825, allocations: 12.03 kB / 445 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.00599, allocations: 12.92 kB / 445.1 MB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.006229, allocations: 117.8 kB / 445.2 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.006241, allocations: 384 / 445.2 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.006255, allocations: 12.3 kB / 445.2 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.006454, allocations: 81.61 kB / 445.3 MB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.006463, allocations: 192 / 445.3 MB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.006475, allocations: 8.375 kB / 445.3 MB, free: 2.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.006482, allocations: 3.938 kB / 445.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.58e-05/0.006578, allocations: 19.98 kB / 445.3 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.006963, allocations: 200.6 kB / 445.5 MB, free: 2.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.007071, allocations: 34.5 kB / 445.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.026e-05/0.007121, allocations: 16.92 kB / 445.5 MB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.007141, allocations: 3.984 kB / 445.5 MB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.007178, allocations: 42.44 kB / 445.6 MB, free: 2.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.00718, allocations: 4 kB / 445.6 MB, free: 2.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002739/0.007454, allocations: 65.62 kB / 445.6 MB, free: 2.156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.007515, allocations: 77.11 kB / 445.7 MB, free: 2.062 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.007624, allocations: 113.8 kB / 445.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.007648, allocations: 29.7 kB / 445.9 MB, free: 1.906 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.023e-05/0.007708, allocations: 88.12 kB / 446 MB, free: 1.816 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.007729, allocations: 7.953 kB / 446 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-05/0.00777, allocations: 13.72 kB / 446 MB, free: 1.789 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.007935, allocations: 319 kB / 446.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.221e-05/0.007987, allocations: 12 kB / 446.3 MB, free: 1.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.453e-05/0.008062, allocations: 51.41 kB / 446.3 MB, free: 1.395 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.168e-05/0.008154, allocations: 24.84 kB / 446.4 MB, free: 1.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.008156, allocations: 0 / 446.4 MB, free: 1.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001569/0.008313, allocations: 65.61 kB / 446.4 MB, free: 1.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.008329, allocations: 7.938 kB / 446.4 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.008333, allocations: 0 / 446.4 MB, free: 1.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.008347, allocations: 4 kB / 446.4 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.454e-05/0.008412, allocations: 4.031 kB / 446.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.008422, allocations: 8 kB / 446.5 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.272e-05/0.008484, allocations: 7.984 kB / 446.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.008493, allocations: 3.984 kB / 446.5 MB, free: 1.262 MB / 366.1 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 0.00011/0.008603, allocations: 113.8 kB / 446.6 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.008638, allocations: 11.89 kB / 446.6 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.617e-05/0.008664, allocations: 3.625 kB / 446.6 MB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.008666, allocations: 3.938 kB / 446.6 MB, free: 1.117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.008671, allocations: 3.984 kB / 446.6 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-06/0.008674, allocations: 0 / 446.6 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.008832, allocations: 125.2 kB / 446.7 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.008833, allocations: 0 / 446.7 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.214e-05/0.008875, allocations: 4 kB / 446.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.008877, allocations: 0 / 446.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.008889, allocations: 4.312 kB / 446.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.00889, allocations: 0 / 446.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.008891, allocations: 0 / 446.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002033/0.009094, allocations: 151.5 kB / 446.9 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.029e-05/0.009104, allocations: 7.891 kB / 446.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.009126, allocations: 7.969 kB / 446.9 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.009236, allocations: 11.98 kB / 446.9 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.009286, allocations: 7.984 kB / 446.9 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.009293, allocations: 4 kB / 446.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.347e-05/0.009357, allocations: 87.27 kB / 447 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.009357, allocations: 4 kB / 447 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.009585, allocations: 4 kB / 447 MB, free: 0.6562 MB / 366.1 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.0001061/0.009691, allocations: 91.25 kB / 447.1 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001621/0.009854, allocations: 31.92 kB / 447.1 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.009856, allocations: 0 / 447.1 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.652e-05/0.009912, allocations: 15.98 kB / 447.1 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.01013, allocations: 0 / 447.1 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003139/0.01044, allocations: 128.7 kB / 447.3 MB, free: 368 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.334e-05/0.01052, allocations: 63.34 kB / 447.3 MB, free: 284 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.858e-05/0.01054, allocations: 240 / 447.3 MB, free: 284 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.947e-05/0.01058, allocations: 24.53 kB / 447.4 MB, free: 260 kB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.01058, allocations: 0 / 447.4 MB, free: 260 kB / 366.1 MB Notification: Performance of Templates: time 0.1881/0.1987, allocations: 0.6145 MB / 448 MB, free: 19.1 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.119246635586023]