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.002565/0.002565, allocations: 87.67 kB / 20.96 MB, free: 3.441 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.002668/0.002668, allocations: 161.3 kB / 24.27 MB, free: 136 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.563/1.563, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.3584/0.3584, allocations: 32.8 MB / 293.9 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 179] 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.993e-06/1.993e-06, allocations: 0 / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.033e-05/3.232e-05, allocations: 2.312 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003062/0.003094, allocations: 1.482 MB / 376.7 MB, free: 3.52 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000963/0.004057, allocations: 454.9 kB / 377.2 MB, free: 3.07 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.587e-05/0.004113, allocations: 0 / 377.2 MB, free: 3.07 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.358e-05/0.004147, allocations: 15.92 kB / 377.2 MB, free: 3.055 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.989e-05/0.004207, allocations: 7.922 kB / 377.2 MB, free: 3.047 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.004444, allocations: 19.92 kB / 377.2 MB, free: 3.027 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000118/0.004562, allocations: 39.86 kB / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.031e-05/0.004652, allocations: 11.97 kB / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.004815, allocations: 35.8 kB / 377.3 MB, free: 2.941 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.944e-05/0.004875, allocations: 11.98 kB / 377.3 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.004891, allocations: 0 / 377.3 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.365e-05/0.004935, allocations: 8 kB / 377.3 MB, free: 2.922 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.339e-05/0.004958, allocations: 19.91 kB / 377.3 MB, free: 2.902 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.516e-05/0.004983, allocations: 4 kB / 377.3 MB, free: 2.898 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.005122, allocations: 39.89 kB / 377.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.005124, allocations: 0 / 377.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005125, allocations: 0 / 377.4 MB, free: 2.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.005129, allocations: 0 / 377.4 MB, free: 2.859 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.0005639/0.005693, allocations: 380.1 kB / 377.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.005738, allocations: 12.03 kB / 377.8 MB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.005916, allocations: 12.94 kB / 377.8 MB, free: 2.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.006108, allocations: 116.6 kB / 377.9 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.006118, allocations: 4.375 kB / 377.9 MB, free: 2.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.00613, allocations: 4.375 kB / 377.9 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001975/0.006327, allocations: 99.25 kB / 378 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.006336, allocations: 192 / 378 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.006346, allocations: 384 / 378 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.006355, allocations: 7.938 kB / 378 MB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.157e-05/0.006436, allocations: 15.98 kB / 378 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003946/0.006831, allocations: 259.8 kB / 378.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.006937, allocations: 35 kB / 378.3 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.507e-05/0.006992, allocations: 31.72 kB / 378.3 MB, free: 1.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.007009, allocations: 0 / 378.3 MB, free: 1.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.007047, allocations: 37.33 kB / 378.4 MB, free: 1.723 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 7.11e-07/0.007047, allocations: 0 / 378.4 MB, free: 1.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002646/0.007312, allocations: 61.64 kB / 378.4 MB, free: 1.656 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.007375, allocations: 77.11 kB / 378.5 MB, free: 1.562 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.007527, allocations: 181.9 kB / 378.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.007552, allocations: 29.69 kB / 378.7 MB, free: 1.332 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.493e-05/0.007637, allocations: 134.9 kB / 378.8 MB, free: 1.195 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.881e-05/0.007656, allocations: 12.02 kB / 378.9 MB, free: 1.184 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.007704, allocations: 23.38 kB / 378.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000268/0.007972, allocations: 0.4884 MB / 379.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.194e-05/0.008014, allocations: 8 kB / 379.4 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.814e-05/0.008092, allocations: 57.06 kB / 379.4 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.428e-05/0.008166, allocations: 27.69 kB / 379.5 MB, free: 0.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.008168, allocations: 0 / 379.5 MB, free: 0.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001259/0.008294, allocations: 57.61 kB / 379.5 MB, free: 492 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.008313, allocations: 11.94 kB / 379.5 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.008317, allocations: 0 / 379.5 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.008332, allocations: 4.031 kB / 379.5 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-05/0.008395, allocations: 4 kB / 379.5 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.0084, allocations: 0 / 379.5 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.848e-05/0.008448, allocations: 11.92 kB / 379.5 MB, free: 460 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.008454, allocations: 0 / 379.5 MB, free: 460 kB / 346.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.0001194/0.008574, allocations: 160.6 kB / 379.7 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.008606, allocations: 11.89 kB / 379.7 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.316e-05/0.008629, allocations: 7.625 kB / 379.7 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.00863, allocations: 0 / 379.7 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.008644, allocations: 0 / 379.7 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.008647, allocations: 4 kB / 379.7 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.008804, allocations: 120.6 kB / 379.8 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.008805, allocations: 0 / 379.8 MB, free: 112 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.861e-05/0.008844, allocations: 7.984 kB / 379.9 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.008845, allocations: 0 / 379.9 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.008855, allocations: 3.938 kB / 379.9 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.008856, allocations: 0 / 379.9 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.008856, allocations: 0 / 379.9 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002305/0.009087, allocations: 203.9 kB / 380.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.468e-06/0.009096, allocations: 3.984 kB / 380.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.009116, allocations: 7.938 kB / 380.1 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.805e-05/0.009194, allocations: 11.98 kB / 380.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.009249, allocations: 7.984 kB / 380.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.009254, allocations: 0 / 380.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.692e-05/0.00934, allocations: 135.2 kB / 380.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009341, allocations: 0 / 380.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002097/0.00955, allocations: 8 kB / 380.2 MB, free: 15.71 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.0001219/0.009672, allocations: 95.25 kB / 380.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.009836, allocations: 35.61 kB / 380.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.009838, allocations: 4 kB / 380.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.609e-05/0.009894, allocations: 19.69 kB / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.0101, allocations: 1.875 kB / 380.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003343/0.01043, allocations: 142.1 kB / 380.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.685e-05/0.01052, allocations: 67.25 kB / 380.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.537e-05/0.01056, allocations: 4.219 kB / 380.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.0106, allocations: 16.56 kB / 380.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.0106, allocations: 0 / 380.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of Templates: time 0.003524/0.01412, allocations: 0.6436 MB / 381.2 MB, free: 14.62 MB / 362.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.816798207932152]