Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 116.8 kB / 19.17 MB, free: 3.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 214.6 kB / 22.13 MB, free: 0.9414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 230.2 MB / 255.1 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2468/0.2468, allocations: 46.88 MB / 358.1 MB, free: 10.52 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 75.88 kB / 0.4923 GB, free: 8.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1922/0.1944, allocations: 65.99 MB / 0.5568 GB, free: 5.949 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.004107/0.1985, allocations: 1.465 MB / 0.5582 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.1998, allocations: 496.4 kB / 0.5587 GB, free: 3.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.184e-05/0.1998, allocations: 4 kB / 0.5587 GB, free: 3.977 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.116e-05/0.1999, allocations: 0 / 0.5587 GB, free: 3.977 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.719e-05/0.1999, allocations: 7.875 kB / 0.5587 GB, free: 3.969 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.2003, allocations: 27.95 kB / 0.5587 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.2004, allocations: 43.8 kB / 0.5588 GB, free: 3.898 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.2006, allocations: 8 kB / 0.5588 GB, free: 3.891 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001628/0.2007, allocations: 15.98 kB / 0.5588 GB, free: 3.875 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.2008, allocations: 19.91 kB / 0.5588 GB, free: 3.855 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.142e-05/0.2008, allocations: 4 kB / 0.5588 GB, free: 3.852 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.377e-05/0.2009, allocations: 11.94 kB / 0.5588 GB, free: 3.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.524e-05/0.2009, allocations: 7.984 kB / 0.5588 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.334e-05/0.201, allocations: 15.94 kB / 0.5588 GB, free: 3.816 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.2011, allocations: 35.81 kB / 0.5589 GB, free: 3.781 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.2012, allocations: 4 kB / 0.5589 GB, free: 3.777 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2012, allocations: 0 / 0.5589 GB, free: 3.777 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2012, allocations: 4 kB / 0.5589 GB, free: 3.773 MB / 414.1 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.0007168/0.2019, allocations: 359.2 kB / 0.5592 GB, free: 3.375 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.2019, allocations: 8.031 kB / 0.5592 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002309/0.2022, allocations: 12.92 kB / 0.5593 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.2026, allocations: 172.3 kB / 0.5594 GB, free: 3.148 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.2026, allocations: 4.375 kB / 0.5594 GB, free: 3.145 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.2026, allocations: 8.359 kB / 0.5594 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.2029, allocations: 63.7 kB / 0.5595 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2029, allocations: 4 kB / 0.5595 GB, free: 3.059 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.2029, allocations: 0 / 0.5595 GB, free: 3.059 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2029, allocations: 3.938 kB / 0.5595 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.203, allocations: 19.98 kB / 0.5595 GB, free: 3.035 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.2036, allocations: 264.8 kB / 0.5598 GB, free: 2.727 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.2037, allocations: 30.58 kB / 0.5598 GB, free: 2.688 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.2038, allocations: 16.91 kB / 0.5598 GB, free: 2.668 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.2039, allocations: 0 / 0.5598 GB, free: 2.668 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/0.2039, allocations: 38.5 kB / 0.5599 GB, free: 2.621 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/0.2039, allocations: 3.938 kB / 0.5599 GB, free: 2.617 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0004218/0.2043, allocations: 65.77 kB / 0.5599 GB, free: 2.547 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.2044, allocations: 77.11 kB / 0.56 GB, free: 2.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.2046, allocations: 113.8 kB / 0.5601 GB, free: 2.332 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.2046, allocations: 25.7 kB / 0.5601 GB, free: 2.301 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.2048, allocations: 84.14 kB / 0.5602 GB, free: 2.215 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.2048, allocations: 15.88 kB / 0.5602 GB, free: 2.199 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.146e-05/0.2049, allocations: 9.719 kB / 0.5602 GB, free: 2.184 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002967/0.2052, allocations: 318.8 kB / 0.5605 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.836e-05/0.2052, allocations: 16.02 kB / 0.5605 GB, free: 1.848 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.2054, allocations: 33.64 kB / 0.5606 GB, free: 1.809 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/0.2055, allocations: 28.78 kB / 0.5606 GB, free: 1.777 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2055, allocations: 0 / 0.5606 GB, free: 1.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002497/0.2058, allocations: 49.69 kB / 0.5607 GB, free: 1.723 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.2058, allocations: 8 kB / 0.5607 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2058, allocations: 0 / 0.5607 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.2058, allocations: 4.031 kB / 0.5607 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.2059, allocations: 7.984 kB / 0.5607 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.2059, allocations: 0 / 0.5607 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.2061, allocations: 15.88 kB / 0.5607 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.2061, allocations: 0 / 0.5607 GB, free: 1.688 MB / 414.1 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.0001777/0.2062, allocations: 121.7 kB / 0.5608 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.2063, allocations: 8 kB / 0.5608 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.2063, allocations: 7.531 kB / 0.5608 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2063, allocations: 4 kB / 0.5608 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2063, allocations: 0 / 0.5608 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2063, allocations: 0 / 0.5608 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003113/0.2067, allocations: 165.6 kB / 0.561 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2067, allocations: 0 / 0.561 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.2067, allocations: 8.125 kB / 0.561 GB, free: 1.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2067, allocations: 0 / 0.561 GB, free: 1.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.2067, allocations: 3.984 kB / 0.561 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2067, allocations: 384 / 0.561 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2067, allocations: 0 / 0.561 GB, free: 1.316 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.2071, allocations: 163.4 kB / 0.5612 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.092e-05/0.2071, allocations: 77.11 kB / 0.5612 GB, free: 1.047 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.2072, allocations: 3.938 kB / 0.5612 GB, free: 1.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.2073, allocations: 15.92 kB / 0.5612 GB, free: 1.027 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.2074, allocations: 0 / 0.5612 GB, free: 1.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.2074, allocations: 7.984 kB / 0.5613 GB, free: 1.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.76e-05/0.2075, allocations: 87.31 kB / 0.5613 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2075, allocations: 0 / 0.5613 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000387/0.2079, allocations: 12 kB / 0.5613 GB, free: 0.9219 MB / 414.1 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.0001679/0.2081, allocations: 95.23 kB / 0.5614 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002658/0.2083, allocations: 23.98 kB / 0.5615 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.2083, allocations: 0 / 0.5615 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.631e-05/0.2084, allocations: 15.94 kB / 0.5615 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.2088, allocations: 13.88 kB / 0.5615 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000532/0.2093, allocations: 156.3 kB / 0.5616 GB, free: 0.582 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.2098, allocations: 0.6807 MB / 0.5623 GB, free: 15.88 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.022e-05/0.2099, allocations: 11.44 kB / 0.5623 GB, free: 15.86 MB / 430.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2099, allocations: 0 / 0.5623 GB, free: 15.86 MB / 430.1 MB Notification: Performance of Templates: time 0.003839/0.2137, allocations: 0.668 MB / 0.563 GB, free: 15.2 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.41383511107415]