Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002766/0.002766, allocations: 91.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003262/0.003262, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.806/1.806, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.5047/0.5047, allocations: 34.26 MB / 295.3 MB, free: 0.6641 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.991e-05/4.168e-05, allocations: 6.312 kB / 377.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003536/0.003577, allocations: 1.467 MB / 378.7 MB, free: 1.488 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.004764, allocations: 474.8 kB / 379.2 MB, free: 1.02 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.206e-05/0.004846, allocations: 7.938 kB / 379.2 MB, free: 1.012 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.004876, allocations: 0 / 379.2 MB, free: 1.012 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.328e-05/0.004949, allocations: 7.875 kB / 379.2 MB, free: 1.004 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.005251, allocations: 23.95 kB / 379.2 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.005403, allocations: 43.8 kB / 379.3 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.005516, allocations: 8 kB / 379.3 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.005713, allocations: 35.89 kB / 379.3 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.133e-05/0.005784, allocations: 11.92 kB / 379.3 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.005808, allocations: 4 kB / 379.3 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.126e-05/0.005859, allocations: 4 kB / 379.3 MB, free: 0.875 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.093e-05/0.00588, allocations: 4 kB / 379.4 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.489e-05/0.005915, allocations: 11.98 kB / 379.4 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.006083, allocations: 43.83 kB / 379.4 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.006091, allocations: 3.984 kB / 379.4 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.006092, allocations: 0 / 379.4 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.006098, allocations: 4 kB / 379.4 MB, free: 0.8086 MB / 346.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.0006563/0.006755, allocations: 368.2 kB / 379.8 MB, free: 424 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.006806, allocations: 12.03 kB / 379.8 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.007019, allocations: 12.92 kB / 379.8 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.00725, allocations: 124.5 kB / 379.9 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.007262, allocations: 384 / 379.9 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.007273, allocations: 4.375 kB / 379.9 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.007536, allocations: 91.31 kB / 380 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.007547, allocations: 192 / 380 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.007561, allocations: 4.375 kB / 380 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.00757, allocations: 3.938 kB / 380 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.007673, allocations: 15.94 kB / 380 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005701/0.008244, allocations: 267.8 kB / 380.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.00837, allocations: 35.06 kB / 380.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.12e-05/0.008441, allocations: 19.75 kB / 380.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.008468, allocations: 3.984 kB / 380.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.04e-05/0.008518, allocations: 41.31 kB / 380.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.008519, allocations: 3.938 kB / 380.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002976/0.008817, allocations: 65.58 kB / 380.5 MB, free: 15.61 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.008902, allocations: 81.11 kB / 380.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.009079, allocations: 177.9 kB / 380.7 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.009107, allocations: 25.7 kB / 380.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.009217, allocations: 138.9 kB / 380.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.009243, allocations: 7.891 kB / 380.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.567e-05/0.009298, allocations: 23.38 kB / 380.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003283/0.009626, allocations: 496.1 kB / 381.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.933e-05/0.009676, allocations: 11.98 kB / 381.4 MB, free: 14.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.164e-05/0.009757, allocations: 57.2 kB / 381.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.444e-05/0.009842, allocations: 31.61 kB / 381.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.009844, allocations: 0 / 381.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001334/0.009977, allocations: 53.69 kB / 381.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.01, allocations: 11.94 kB / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.01001, allocations: 0 / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.01003, allocations: 0 / 381.6 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.732e-05/0.01011, allocations: 11.98 kB / 381.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.01012, allocations: 0 / 381.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.764e-05/0.01017, allocations: 4 kB / 381.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.01017, allocations: 4.031 kB / 381.6 MB, free: 14.41 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 0.0004332/0.01061, allocations: 156.6 kB / 381.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.783e-05/0.01065, allocations: 19.88 kB / 381.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.705e-05/0.01067, allocations: 3.625 kB / 381.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.01067, allocations: 3.938 kB / 381.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.01068, allocations: 0 / 381.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.01068, allocations: 0 / 381.8 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.01088, allocations: 124.6 kB / 381.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01088, allocations: 0 / 381.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.671e-05/0.01092, allocations: 4 kB / 381.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.01092, allocations: 4 kB / 381.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.01093, allocations: 3.938 kB / 381.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.01093, allocations: 3.984 kB / 381.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01093, allocations: 0 / 381.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004131/0.01135, allocations: 195.9 kB / 382.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.166e-05/0.01136, allocations: 3.953 kB / 382.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.01138, allocations: 7.875 kB / 382.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.058e-05/0.01145, allocations: 4 kB / 382.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.363e-05/0.01154, allocations: 15.97 kB / 382.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.01154, allocations: 32 / 382.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001041/0.01164, allocations: 139.1 kB / 382.3 MB, free: 13.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01165, allocations: 0 / 382.3 MB, free: 13.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.01186, allocations: 8 kB / 382.3 MB, free: 13.66 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 0.0001431/0.012, allocations: 95.23 kB / 382.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.01219, allocations: 35.67 kB / 382.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.01219, allocations: 0 / 382.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.854e-05/0.01225, allocations: 15.69 kB / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.01249, allocations: 7.016 kB / 382.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004028/0.01289, allocations: 142.1 kB / 382.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.645e-05/0.01298, allocations: 63.34 kB / 382.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.344e-05/0.01302, allocations: 8.203 kB / 382.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.068e-05/0.01308, allocations: 12.5 kB / 382.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of SimCode: time 1.213e-06/0.01308, allocations: 0 / 382.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of Templates: time 0.004056/0.01714, allocations: 0.651 MB / 383.3 MB, free: 12.58 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.69676459801849]