Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001112/0.001112, allocations: 80.41 kB / 22.21 MB, free: 2.285 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.00097/0.00097, allocations: 171.9 kB / 25.61 MB, free: 8.535 MB / 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.031/1.031, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1657/0.1657, allocations: 32.8 MB / 295.4 MB, free: 15.39 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.553e-05/2.725e-05, allocations: 6.25 kB / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003225/0.003253, allocations: 1.491 MB / 378.7 MB, free: 24.13 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006975/0.00395, allocations: 482.6 kB / 379.2 MB, free: 23.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.702e-05/0.004007, allocations: 0 / 379.2 MB, free: 23.66 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.866e-05/0.004036, allocations: 0 / 379.2 MB, free: 23.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.435e-05/0.00409, allocations: 11.86 kB / 379.2 MB, free: 23.64 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.004303, allocations: 27.91 kB / 379.2 MB, free: 23.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.814e-05/0.004401, allocations: 31.86 kB / 379.3 MB, free: 23.59 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.484e-05/0.004486, allocations: 11.98 kB / 379.3 MB, free: 23.57 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.004597, allocations: 27.91 kB / 379.3 MB, free: 23.55 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.244e-05/0.004649, allocations: 15.92 kB / 379.3 MB, free: 23.53 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.004663, allocations: 4 kB / 379.3 MB, free: 23.53 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.084e-05/0.004704, allocations: 8 kB / 379.3 MB, free: 23.52 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.004717, allocations: 7.984 kB / 379.3 MB, free: 23.51 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.561e-05/0.004733, allocations: 11.98 kB / 379.4 MB, free: 23.5 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 9.388e-05/0.004826, allocations: 35.84 kB / 379.4 MB, free: 23.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.004829, allocations: 0 / 379.4 MB, free: 23.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.00483, allocations: 0 / 379.4 MB, free: 23.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.004835, allocations: 0 / 379.4 MB, free: 23.46 MB / 314.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.000287/0.005122, allocations: 376.5 kB / 379.8 MB, free: 23.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.005158, allocations: 11.98 kB / 379.8 MB, free: 23.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.005267, allocations: 12.89 kB / 379.8 MB, free: 23.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.005381, allocations: 128.5 kB / 379.9 MB, free: 22.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.196e-06/0.005389, allocations: 384 / 379.9 MB, free: 22.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.326e-06/0.005398, allocations: 8.375 kB / 379.9 MB, free: 22.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.961e-05/0.005497, allocations: 96.02 kB / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.22e-06/0.005502, allocations: 192 / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-06/0.005509, allocations: 384 / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/0.005514, allocations: 3.938 kB / 380 MB, free: 22.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.027e-05/0.005534, allocations: 7.938 kB / 380 MB, free: 22.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001775/0.005712, allocations: 240.4 kB / 380.3 MB, free: 22.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.314e-05/0.005755, allocations: 35.09 kB / 380.3 MB, free: 22.44 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.252e-05/0.005767, allocations: 11.75 kB / 380.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.005779, allocations: 0 / 380.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.005796, allocations: 37.33 kB / 380.3 MB, free: 22.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=2): time 6.51e-07/0.005796, allocations: 0 / 380.3 MB, free: 22.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001197/0.005916, allocations: 49.58 kB / 380.4 MB, free: 22.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.615e-05/0.005942, allocations: 81.11 kB / 380.5 MB, free: 22.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.635e-05/0.005998, allocations: 169.9 kB / 380.6 MB, free: 22.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.006012, allocations: 33.64 kB / 380.7 MB, free: 22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.731e-05/0.006049, allocations: 131 kB / 380.8 MB, free: 21.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.006066, allocations: 7.938 kB / 380.8 MB, free: 21.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.006094, allocations: 23.36 kB / 380.8 MB, free: 21.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.006143, allocations: 0.4884 MB / 381.3 MB, free: 21.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/0.006154, allocations: 0 / 381.3 MB, free: 21.33 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.27e-05/0.006176, allocations: 57 kB / 381.4 MB, free: 21.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.304e-05/0.006199, allocations: 15.69 kB / 381.4 MB, free: 21.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.006201, allocations: 4 kB / 381.4 MB, free: 21.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.686e-05/0.006268, allocations: 41.64 kB / 381.4 MB, free: 21.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.006284, allocations: 10.19 kB / 381.4 MB, free: 21.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.006289, allocations: 3.938 kB / 381.4 MB, free: 21.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/0.006298, allocations: 4.031 kB / 381.4 MB, free: 21.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.193e-05/0.00636, allocations: 4 kB / 381.5 MB, free: 21.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.346e-06/0.006364, allocations: 0 / 381.5 MB, free: 21.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.78e-05/0.006391, allocations: 7.984 kB / 381.5 MB, free: 21.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-06/0.006396, allocations: 3.938 kB / 381.5 MB, free: 21.16 MB / 314.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.197e-05/0.006448, allocations: 160.6 kB / 381.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.926e-05/0.006467, allocations: 3.953 kB / 381.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.909e-05/0.006486, allocations: 11.56 kB / 381.6 MB, free: 20.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.006489, allocations: 144 / 381.6 MB, free: 20.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.006491, allocations: 3.984 kB / 381.6 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.006493, allocations: 4 kB / 381.6 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.395e-05/0.006567, allocations: 105.2 kB / 381.7 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.006568, allocations: 0 / 381.7 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.308e-05/0.006581, allocations: 4 kB / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.006582, allocations: 0 / 381.8 MB, free: 20.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-06/0.006587, allocations: 3.984 kB / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.006587, allocations: 0 / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.006589, allocations: 3.938 kB / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.846e-05/0.006657, allocations: 187.9 kB / 381.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-06/0.006664, allocations: 7.953 kB / 381.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.006678, allocations: 4.031 kB / 382 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.32e-05/0.006711, allocations: 4 kB / 382 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.006744, allocations: 15.92 kB / 382 MB, free: 20.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.006746, allocations: 0 / 382 MB, free: 20.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.169e-05/0.006768, allocations: 131.1 kB / 382.1 MB, free: 20.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006768, allocations: 0 / 382.1 MB, free: 20.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001279/0.006896, allocations: 8 kB / 382.1 MB, free: 20.46 MB / 314.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 5.7e-05/0.006953, allocations: 91.25 kB / 382.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.326e-05/0.007026, allocations: 27.66 kB / 382.2 MB, free: 20.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.093e-06/0.007027, allocations: 4 kB / 382.2 MB, free: 20.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.01e-05/0.007047, allocations: 15.62 kB / 382.2 MB, free: 20.3 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001499/0.007197, allocations: 3.828 kB / 382.2 MB, free: 20.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003461/0.007543, allocations: 136 kB / 382.4 MB, free: 20.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.475e-05/0.007568, allocations: 59.22 kB / 382.4 MB, free: 20.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.997e-05/0.007588, allocations: 0 / 382.4 MB, free: 20.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/0.007633, allocations: 78.19 kB / 382.5 MB, free: 19.99 MB / 314.7 MB Notification: Performance of SimCode: time 7.22e-07/0.007633, allocations: 4.062 kB / 382.5 MB, free: 19.98 MB / 314.7 MB Notification: Performance of Templates: time 0.002236/0.009869, allocations: 0.7077 MB / 383.2 MB, free: 19.28 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.107832820620388]