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.0009883/0.0009883, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001062/0.001062, allocations: 170.4 kB / 24.91 MB, free: 8.723 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.079/1.079, allocations: 177.1 MB / 205.3 MB, free: 4.492 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.1512/0.1512, allocations: 34.26 MB / 296.1 MB, free: 13.99 MB / 282.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 1.393e-06/1.393e-06, allocations: 0 / 325.2 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.11e-05/2.249e-05, allocations: 2.312 kB / 325.2 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002016/0.002038, allocations: 1.497 MB / 326.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00063/0.002668, allocations: 478.7 kB / 327.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.048e-05/0.002719, allocations: 7.938 kB / 327.2 MB, free: 14.81 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.401e-05/0.002743, allocations: 0 / 327.2 MB, free: 14.81 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 4.695e-05/0.00279, allocations: 7.875 kB / 327.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.00299, allocations: 27.89 kB / 327.2 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 8.896e-05/0.003079, allocations: 39.86 kB / 327.3 MB, free: 14.73 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.507e-05/0.003144, allocations: 4 kB / 327.3 MB, free: 14.73 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.00326, allocations: 43.83 kB / 327.3 MB, free: 14.69 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.734e-05/0.003307, allocations: 7.984 kB / 327.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.00332, allocations: 4 kB / 327.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.544e-05/0.003355, allocations: 4 kB / 327.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.14e-05/0.003367, allocations: 4 kB / 327.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.592e-05/0.003382, allocations: 11.94 kB / 327.4 MB, free: 14.66 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.731e-05/0.00347, allocations: 31.95 kB / 327.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.003472, allocations: 0 / 327.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.003473, allocations: 0 / 327.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.00348, allocations: 0 / 327.4 MB, free: 14.62 MB / 314.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.0002675/0.003748, allocations: 256.8 kB / 327.6 MB, free: 14.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.003778, allocations: 8.031 kB / 327.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.319e-05/0.003871, allocations: 16.86 kB / 327.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.003986, allocations: 117.7 kB / 327.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.144e-06/0.003993, allocations: 384 / 327.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.004004, allocations: 4.375 kB / 327.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.004107, allocations: 90.38 kB / 327.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.004114, allocations: 192 / 327.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.885e-06/0.004122, allocations: 8.297 kB / 327.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.004128, allocations: 3.938 kB / 327.9 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.838e-05/0.004146, allocations: 11.94 kB / 327.9 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.004311, allocations: 148.3 kB / 328 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.345e-05/0.004355, allocations: 22.58 kB / 328.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.064e-05/0.004365, allocations: 8.922 kB / 328.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.004376, allocations: 0 / 328.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.004394, allocations: 30.56 kB / 328.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of pre-optimization done (n=2): time 7.42e-07/0.004395, allocations: 0 / 328.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=2): time 0.000103/0.004498, allocations: 49.61 kB / 328.1 MB, free: 13.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.004533, allocations: 77.23 kB / 328.2 MB, free: 13.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.455e-05/0.004587, allocations: 118.6 kB / 328.3 MB, free: 13.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.004604, allocations: 33.7 kB / 328.4 MB, free: 13.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.793e-05/0.004632, allocations: 88.11 kB / 328.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.397e-05/0.004646, allocations: 7.891 kB / 328.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.176e-05/0.004667, allocations: 13.72 kB / 328.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.832e-05/0.004736, allocations: 322.8 kB / 328.8 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.869e-06/0.004745, allocations: 4 kB / 328.8 MB, free: 13.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.291e-05/0.004768, allocations: 43.42 kB / 328.8 MB, free: 12.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.463e-05/0.004793, allocations: 16.78 kB / 328.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.004795, allocations: 0 / 328.9 MB, free: 12.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.442e-05/0.004839, allocations: 45.86 kB / 328.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.00485, allocations: 8 kB / 328.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.004854, allocations: 0 / 328.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.004868, allocations: 7.922 kB / 328.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.397e-05/0.004912, allocations: 4 kB / 328.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-06/0.004914, allocations: 0 / 328.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.213e-05/0.004936, allocations: 7.984 kB / 328.9 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-06/0.00494, allocations: 0 / 328.9 MB, free: 12.89 MB / 314.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 4.936e-05/0.00499, allocations: 109.8 kB / 329 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.144e-05/0.005001, allocations: 0 / 329 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.83e-05/0.005019, allocations: 15.56 kB / 329 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.005022, allocations: 7.938 kB / 329.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.005024, allocations: 0 / 329.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.005027, allocations: 3.984 kB / 329.1 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.705e-05/0.005104, allocations: 73.83 kB / 329.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.005105, allocations: 0 / 329.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.154e-05/0.005116, allocations: 4 kB / 329.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.005118, allocations: 3.984 kB / 329.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.558e-06/0.005122, allocations: 0 / 329.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.005123, allocations: 0 / 329.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.005124, allocations: 0 / 329.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.508e-05/0.005189, allocations: 139.5 kB / 329.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-06/0.005194, allocations: 0 / 329.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.005207, allocations: 4 kB / 329.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.247e-05/0.00524, allocations: 8 kB / 329.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.936e-05/0.005269, allocations: 7.922 kB / 329.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.005273, allocations: 3.984 kB / 329.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.146e-05/0.005284, allocations: 16.8 kB / 329.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005284, allocations: 0 / 329.3 MB, free: 12.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001261/0.00541, allocations: 8 kB / 329.3 MB, free: 12.45 MB / 314.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.025e-05/0.00548, allocations: 76.45 kB / 329.4 MB, free: 12.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.987e-05/0.00554, allocations: 20.84 kB / 329.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.005543, allocations: 0 / 329.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.671e-05/0.005559, allocations: 12.84 kB / 329.4 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.627e-05/0.005656, allocations: 0 / 329.4 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003303/0.005986, allocations: 144.4 kB / 329.6 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.849e-05/0.006014, allocations: 51.42 kB / 329.6 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.962e-05/0.006034, allocations: 11.98 kB / 329.6 MB, free: 12.08 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.228e-05/0.006076, allocations: 51.38 kB / 329.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.006077, allocations: 0 / 329.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of Templates: time 0.001973/0.00805, allocations: 0.6657 MB / 330.3 MB, free: 11.37 MB / 314.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.147782474756241]