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.001039/0.001039, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001022/0.001022, allocations: 165 kB / 24.56 MB, free: 12 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.064/1.064, allocations: 177.1 MB / 205 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] 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.274/0.274, allocations: 34.26 MB / 295.7 MB, free: 0.7539 MB / 266.7 MB " [Timeout remaining time 180] 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 2.134e-06/2.134e-06, allocations: 0 / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.02e-05/3.233e-05, allocations: 2.312 kB / 378 MB, free: 2.641 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.006734/0.006766, allocations: 1.498 MB / 379.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008406/0.007607, allocations: 470.7 kB / 380 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.553e-05/0.007662, allocations: 4 kB / 380 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.255e-05/0.007695, allocations: 3.938 kB / 380 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.408e-05/0.007749, allocations: 15.86 kB / 380 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.008069, allocations: 23.97 kB / 380 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.008194, allocations: 35.86 kB / 380.1 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.008304, allocations: 7.938 kB / 380.1 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.00848, allocations: 35.89 kB / 380.1 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.637e-05/0.008546, allocations: 15.92 kB / 380.1 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.008567, allocations: 4 kB / 380.1 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.758e-05/0.008614, allocations: 4 kB / 380.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.497e-05/0.008629, allocations: 7.984 kB / 380.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.008654, allocations: 11.98 kB / 380.2 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.008783, allocations: 31.86 kB / 380.2 MB, free: 476 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.008787, allocations: 4 kB / 380.2 MB, free: 472 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.008788, allocations: 0 / 380.2 MB, free: 472 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.008793, allocations: 0 / 380.2 MB, free: 472 kB / 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.0004542/0.009247, allocations: 372.5 kB / 380.6 MB, free: 64 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.00929, allocations: 8.031 kB / 380.6 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001502/0.009441, allocations: 12.92 kB / 380.6 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.009635, allocations: 136.4 kB / 380.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.009647, allocations: 384 / 380.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-06/0.009657, allocations: 4.375 kB / 380.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.009819, allocations: 100 kB / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.009827, allocations: 192 / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.009839, allocations: 384 / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.00985, allocations: 7.922 kB / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.088e-05/0.009881, allocations: 4 kB / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003003/0.01018, allocations: 259.7 kB / 381.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.747e-05/0.01024, allocations: 27.06 kB / 381.1 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.279e-05/0.01026, allocations: 19.73 kB / 381.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.01028, allocations: 4 kB / 381.1 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.01031, allocations: 41.33 kB / 381.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.01031, allocations: 0 / 381.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001692/0.01048, allocations: 41.59 kB / 381.2 MB, free: 15.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.01052, allocations: 89.09 kB / 381.3 MB, free: 15.19 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.402e-05/0.0106, allocations: 165.9 kB / 381.5 MB, free: 15.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.01062, allocations: 25.7 kB / 381.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.104e-05/0.01067, allocations: 138.8 kB / 381.6 MB, free: 14.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.01069, allocations: 3.953 kB / 381.6 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.924e-05/0.01072, allocations: 27.36 kB / 381.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.01088, allocations: 0.4885 MB / 382.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.072e-05/0.0109, allocations: 0 / 382.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.866e-05/0.01094, allocations: 53.06 kB / 382.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.513e-05/0.01097, allocations: 15.69 kB / 382.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01097, allocations: 3.938 kB / 382.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.598e-05/0.01104, allocations: 45.83 kB / 382.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.01106, allocations: 7.938 kB / 382.3 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.01106, allocations: 0 / 382.3 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.01108, allocations: 3.984 kB / 382.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.806e-05/0.01114, allocations: 4 kB / 382.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.94e-06/0.01115, allocations: 0 / 382.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.563e-05/0.01118, allocations: 12.02 kB / 382.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.01118, allocations: 0 / 382.3 MB, free: 14.13 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 6.834e-05/0.01125, allocations: 156.6 kB / 382.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.01127, allocations: 15.89 kB / 382.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.801e-05/0.01129, allocations: 3.625 kB / 382.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.01129, allocations: 0 / 382.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01129, allocations: 0 / 382.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.01129, allocations: 0 / 382.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.651e-05/0.01139, allocations: 120.6 kB / 382.6 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.01139, allocations: 4 kB / 382.6 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.721e-05/0.01141, allocations: 11.92 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.01141, allocations: 4 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.01142, allocations: 3.938 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.01142, allocations: 0 / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01142, allocations: 0 / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001051/0.01153, allocations: 187.9 kB / 382.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.704e-06/0.01154, allocations: 3.953 kB / 382.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.01156, allocations: 7.938 kB / 382.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.454e-05/0.01159, allocations: 7.984 kB / 382.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.01163, allocations: 12.02 kB / 382.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.01164, allocations: 0 / 382.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.095e-05/0.01168, allocations: 127.2 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01168, allocations: 3.938 kB / 382.9 MB, free: 13.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001355/0.01181, allocations: 11.94 kB / 382.9 MB, free: 13.4 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 8.553e-05/0.0119, allocations: 95.23 kB / 383 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.997e-05/0.012, allocations: 19.69 kB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.012, allocations: 0 / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.066e-05/0.01202, allocations: 11.69 kB / 383.1 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001545/0.01218, allocations: 12.05 kB / 383.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004333/0.01261, allocations: 138.1 kB / 383.2 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.98e-05/0.01265, allocations: 59.34 kB / 383.3 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.316e-05/0.01267, allocations: 4 kB / 383.3 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.0127, allocations: 8.5 kB / 383.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.093e-06/0.01271, allocations: 0 / 383.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of Templates: time 0.002306/0.01501, allocations: 0.6854 MB / 384 MB, free: 12.3 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","",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.1290181488730013]