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.001041/0.001041, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001176/0.001176, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.082/1.082, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.2899/0.2899, allocations: 32.8 MB / 294.6 MB, free: 1.211 MB / 266.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.373e-06/1.373e-06, allocations: 0 / 376 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.937e-05/2.074e-05, allocations: 2.312 kB / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001969/0.00199, allocations: 1.502 MB / 377.5 MB, free: 3.473 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006823/0.002672, allocations: 474.7 kB / 377.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.507e-05/0.002727, allocations: 0 / 377.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.607e-05/0.002754, allocations: 7.938 kB / 378 MB, free: 2.996 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.582e-05/0.002799, allocations: 3.984 kB / 378 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.003039, allocations: 35.78 kB / 378 MB, free: 2.957 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000123/0.003162, allocations: 31.86 kB / 378 MB, free: 2.926 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.584e-05/0.003258, allocations: 8 kB / 378 MB, free: 2.918 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.003394, allocations: 31.89 kB / 378.1 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.402e-05/0.003448, allocations: 11.98 kB / 378.1 MB, free: 2.875 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.003464, allocations: 4 kB / 378.1 MB, free: 2.871 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.035e-05/0.003505, allocations: 7.938 kB / 378.1 MB, free: 2.863 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.244e-05/0.003517, allocations: 11.98 kB / 378.1 MB, free: 2.852 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.15e-05/0.003539, allocations: 11.98 kB / 378.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.00365, allocations: 31.86 kB / 378.1 MB, free: 2.809 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.003652, allocations: 0 / 378.1 MB, free: 2.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.003652, allocations: 0 / 378.1 MB, free: 2.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.003656, allocations: 0 / 378.1 MB, free: 2.809 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.0004152/0.004071, allocations: 372.5 kB / 378.5 MB, free: 2.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.00411, allocations: 8.031 kB / 378.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.004246, allocations: 16.92 kB / 378.5 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.004419, allocations: 132.4 kB / 378.7 MB, free: 2.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.00443, allocations: 4.375 kB / 378.7 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.004441, allocations: 4.375 kB / 378.7 MB, free: 2.223 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.004598, allocations: 104 kB / 378.8 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.004605, allocations: 192 / 378.8 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.004618, allocations: 384 / 378.8 MB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.004632, allocations: 7.922 kB / 378.8 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.01e-05/0.004672, allocations: 4 kB / 378.8 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003351/0.005007, allocations: 251.8 kB / 379 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.694e-05/0.005064, allocations: 42.98 kB / 379.1 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.963e-05/0.005084, allocations: 11.69 kB / 379.1 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.005097, allocations: 4.062 kB / 379.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.00512, allocations: 37.33 kB / 379.1 MB, free: 1.684 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.005121, allocations: 0 / 379.1 MB, free: 1.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001494/0.00527, allocations: 49.64 kB / 379.2 MB, free: 1.629 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.005311, allocations: 81.05 kB / 379.2 MB, free: 1.531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.372e-05/0.005395, allocations: 165.9 kB / 379.4 MB, free: 1.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.005413, allocations: 29.7 kB / 379.4 MB, free: 1.316 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.605e-05/0.005459, allocations: 130.9 kB / 379.6 MB, free: 1.184 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.005476, allocations: 3.953 kB / 379.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.88e-05/0.005505, allocations: 31.48 kB / 379.6 MB, free: 1.141 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.005615, allocations: 0.4883 MB / 380.1 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.535e-05/0.00563, allocations: 4 kB / 380.1 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.13e-05/0.005661, allocations: 53.06 kB / 380.1 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.934e-05/0.005691, allocations: 11.69 kB / 380.2 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.005692, allocations: 0 / 380.2 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.515e-05/0.005747, allocations: 49.62 kB / 380.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.005761, allocations: 7.938 kB / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.005766, allocations: 0 / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.005779, allocations: 0 / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.476e-05/0.005834, allocations: 4 kB / 380.2 MB, free: 500 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.005839, allocations: 4.031 kB / 380.2 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.628e-05/0.005866, allocations: 7.984 kB / 380.2 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-06/0.00587, allocations: 0 / 380.2 MB, free: 488 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 7.131e-05/0.005941, allocations: 160.6 kB / 380.4 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.005959, allocations: 11.89 kB / 380.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.734e-05/0.005976, allocations: 3.625 kB / 380.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.005978, allocations: 0 / 380.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.005982, allocations: 0 / 380.4 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.005986, allocations: 3.984 kB / 380.4 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.655e-05/0.006073, allocations: 116.6 kB / 380.5 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.006075, allocations: 7.984 kB / 380.5 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.574e-05/0.006091, allocations: 8 kB / 380.5 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.006092, allocations: 0 / 380.5 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.006099, allocations: 3.938 kB / 380.5 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.006099, allocations: 0 / 380.5 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.0061, allocations: 0 / 380.5 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.006205, allocations: 191.9 kB / 380.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-06/0.006212, allocations: 7.953 kB / 380.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.006231, allocations: 3.938 kB / 380.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.803e-05/0.006269, allocations: 11.98 kB / 380.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.897e-05/0.006318, allocations: 8.016 kB / 380.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.006321, allocations: 4.141 kB / 380.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.332e-05/0.006364, allocations: 131.2 kB / 380.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006364, allocations: 0 / 380.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001442/0.006508, allocations: 8 kB / 380.9 MB, free: 15.75 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 7.234e-05/0.006581, allocations: 95.23 kB / 381 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.006685, allocations: 23.56 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.006687, allocations: 0 / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.799e-05/0.006715, allocations: 23.67 kB / 381 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.006884, allocations: 4 kB / 381 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004685/0.007353, allocations: 138.1 kB / 381.2 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.298e-05/0.007386, allocations: 55.34 kB / 381.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.156e-05/0.007408, allocations: 4 kB / 381.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.712e-05/0.007435, allocations: 8.5 kB / 381.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.007436, allocations: 0 / 381.2 MB, free: 15.33 MB / 362.7 MB Notification: Performance of Templates: time 0.00216/0.009596, allocations: 0.6549 MB / 381.9 MB, free: 14.68 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","",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.2702385981101543]