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.000949/0.000949, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009568/0.0009568, allocations: 165 kB / 24.56 MB, free: 16 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 0.9358/0.9358, allocations: 177.2 MB / 205 MB, free: 5.297 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.2543/0.2543, allocations: 32.8 MB / 294.3 MB, free: 1.238 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.402e-06/1.402e-06, allocations: 0 / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.268e-05/2.409e-05, allocations: 2.312 kB / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001913/0.001937, allocations: 1.494 MB / 377.5 MB, free: 3.195 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006318/0.002569, allocations: 478.7 kB / 378 MB, free: 2.723 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.766e-05/0.002637, allocations: 4 kB / 378 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.94e-05/0.002666, allocations: 3.938 kB / 378 MB, free: 2.715 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.585e-05/0.002712, allocations: 3.938 kB / 378 MB, free: 2.711 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002338/0.002946, allocations: 23.91 kB / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.003046, allocations: 39.84 kB / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.779e-05/0.003134, allocations: 11.94 kB / 378.1 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.003261, allocations: 39.84 kB / 378.1 MB, free: 2.598 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.09e-05/0.003312, allocations: 11.97 kB / 378.1 MB, free: 2.586 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.629e-05/0.003328, allocations: 4 kB / 378.1 MB, free: 2.582 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.915e-05/0.003367, allocations: 4 kB / 378.1 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.349e-05/0.003381, allocations: 7.938 kB / 378.1 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.23e-05/0.003403, allocations: 11.98 kB / 378.1 MB, free: 2.559 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.003512, allocations: 27.91 kB / 378.2 MB, free: 2.531 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.003516, allocations: 4 kB / 378.2 MB, free: 2.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.003517, allocations: 0 / 378.2 MB, free: 2.527 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.003522, allocations: 3.938 kB / 378.2 MB, free: 2.523 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.0003926/0.003914, allocations: 376.5 kB / 378.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.00395, allocations: 8.031 kB / 378.5 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.004074, allocations: 12.92 kB / 378.6 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.004226, allocations: 128.5 kB / 378.7 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.004236, allocations: 384 / 378.7 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.004247, allocations: 8.312 kB / 378.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.004395, allocations: 96.03 kB / 378.8 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.004404, allocations: 8.172 kB / 378.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.004414, allocations: 384 / 378.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.004423, allocations: 3.938 kB / 378.8 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.034e-05/0.004453, allocations: 8 kB / 378.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002881/0.004741, allocations: 259.8 kB / 379.1 MB, free: 1.516 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.553e-05/0.004797, allocations: 31 kB / 379.1 MB, free: 1.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.089e-05/0.004818, allocations: 15.73 kB / 379.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.004829, allocations: 0 / 379.1 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.004852, allocations: 41.33 kB / 379.1 MB, free: 1.402 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.004853, allocations: 0 / 379.1 MB, free: 1.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001611/0.005014, allocations: 49.58 kB / 379.2 MB, free: 1.348 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000309/0.005323, allocations: 81.23 kB / 379.3 MB, free: 1.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.863e-05/0.005391, allocations: 169.9 kB / 379.4 MB, free: 1.066 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.005406, allocations: 25.7 kB / 379.5 MB, free: 1.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.00545, allocations: 134.9 kB / 379.6 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.00547, allocations: 7.953 kB / 379.6 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/0.005503, allocations: 23.36 kB / 379.6 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.005604, allocations: 496.1 kB / 380.1 MB, free: 372 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.7e-05/0.005621, allocations: 4 kB / 380.1 MB, free: 368 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.229e-05/0.005654, allocations: 53.05 kB / 380.2 MB, free: 300 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.526e-05/0.005689, allocations: 19.69 kB / 380.2 MB, free: 276 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.005691, allocations: 0 / 380.2 MB, free: 276 kB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.359e-05/0.005755, allocations: 49.66 kB / 380.2 MB, free: 220 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.005772, allocations: 7.938 kB / 380.2 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.005776, allocations: 0 / 380.2 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.005789, allocations: 0 / 380.2 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.458e-05/0.005854, allocations: 4 kB / 380.2 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.005858, allocations: 3.938 kB / 380.2 MB, free: 204 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.346e-05/0.005882, allocations: 7.984 kB / 380.3 MB, free: 196 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.005886, allocations: 0 / 380.3 MB, free: 196 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 6.208e-05/0.005948, allocations: 160.6 kB / 380.4 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.005964, allocations: 7.891 kB / 380.4 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.948e-05/0.005983, allocations: 15.62 kB / 380.4 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.005985, allocations: 0 / 380.4 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.005988, allocations: 0 / 380.4 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.005991, allocations: 0 / 380.4 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000106/0.006097, allocations: 120.6 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.006098, allocations: 0 / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.816e-05/0.006116, allocations: 3.984 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.006119, allocations: 4 kB / 380.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.006127, allocations: 3.938 kB / 380.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.006129, allocations: 0 / 380.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.006129, allocations: 3.938 kB / 380.6 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.997e-05/0.006229, allocations: 187.9 kB / 380.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.247e-06/0.006239, allocations: 11.95 kB / 380.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.006257, allocations: 7.938 kB / 380.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.486e-05/0.006292, allocations: 3.984 kB / 380.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.006331, allocations: 7.984 kB / 380.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.006334, allocations: 0 / 380.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.711e-05/0.006371, allocations: 131.2 kB / 380.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006371, allocations: 0 / 380.9 MB, free: 15.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001385/0.006509, allocations: 7.984 kB / 380.9 MB, free: 15.46 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.34e-05/0.006583, allocations: 95.28 kB / 381 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.109e-05/0.006674, allocations: 27.62 kB / 381 MB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.006675, allocations: 0 / 381 MB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.997e-05/0.006695, allocations: 15.67 kB / 381.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.006841, allocations: 0 / 381.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004138/0.007255, allocations: 138.1 kB / 381.2 MB, free: 15.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.352e-05/0.007289, allocations: 59.41 kB / 381.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.907e-05/0.007308, allocations: 7.938 kB / 381.3 MB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.914e-05/0.007337, allocations: 12.5 kB / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.007338, allocations: 3.938 kB / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of Templates: time 0.002241/0.009579, allocations: 0.685 MB / 382 MB, free: 14.36 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: 2.9315179171971977]