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.0009289/0.0009289, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001089/0.001089, allocations: 169.9 kB / 24.91 MB, free: 9.184 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 0.9902/0.9902, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.2598/0.2598, allocations: 32.81 MB / 294.6 MB, free: 1.172 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.733e-06/1.733e-06, allocations: 0 / 323.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.597e-05, allocations: 2.312 kB / 323.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002086/0.002112, allocations: 1.487 MB / 324.7 MB, free: 8.188 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006879/0.0028, allocations: 479.5 kB / 325.2 MB, free: 7.715 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.583e-05/0.002856, allocations: 3.938 kB / 325.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.524e-05/0.002881, allocations: 0 / 325.2 MB, free: 7.711 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.157e-05/0.002933, allocations: 11.88 kB / 325.2 MB, free: 7.699 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.003134, allocations: 31.83 kB / 325.2 MB, free: 7.668 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.902e-05/0.003233, allocations: 39.86 kB / 325.2 MB, free: 7.629 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.34e-05/0.003306, allocations: 7.984 kB / 325.3 MB, free: 7.621 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.003419, allocations: 31.97 kB / 325.3 MB, free: 7.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.075e-05/0.00347, allocations: 11.92 kB / 325.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.003486, allocations: 4 kB / 325.3 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.872e-05/0.003524, allocations: 4 kB / 325.3 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.281e-05/0.003537, allocations: 4 kB / 325.3 MB, free: 7.566 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.732e-05/0.003555, allocations: 11.98 kB / 325.3 MB, free: 7.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.291e-05/0.003647, allocations: 35.83 kB / 325.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.00365, allocations: 0 / 325.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.003651, allocations: 0 / 325.4 MB, free: 7.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.003655, allocations: 4 kB / 325.4 MB, free: 7.516 MB / 298.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.0002907/0.003946, allocations: 254.1 kB / 325.6 MB, free: 7.246 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.003979, allocations: 11.97 kB / 325.6 MB, free: 7.234 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.004089, allocations: 12.92 kB / 325.6 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001229/0.004211, allocations: 113.7 kB / 325.7 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.382e-06/0.004218, allocations: 384 / 325.7 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.004227, allocations: 4.375 kB / 325.8 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.004338, allocations: 94.36 kB / 325.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.004344, allocations: 192 / 325.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.612e-06/0.004351, allocations: 384 / 325.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.004357, allocations: 11.92 kB / 325.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.934e-05/0.004376, allocations: 7.938 kB / 325.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.00456, allocations: 152.9 kB / 326 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.562e-05/0.004605, allocations: 26.61 kB / 326 MB, free: 6.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.258e-05/0.004618, allocations: 8.922 kB / 326 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.004629, allocations: 0 / 326 MB, free: 6.738 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.004648, allocations: 38.5 kB / 326.1 MB, free: 6.691 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.004649, allocations: 0 / 326.1 MB, free: 6.691 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001074/0.004757, allocations: 45.56 kB / 326.1 MB, free: 6.641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.004792, allocations: 85.23 kB / 326.2 MB, free: 6.539 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.793e-05/0.00485, allocations: 110.7 kB / 326.3 MB, free: 6.418 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.004868, allocations: 29.7 kB / 326.3 MB, free: 6.383 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.087e-05/0.004899, allocations: 88.12 kB / 326.4 MB, free: 6.293 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.004912, allocations: 3.953 kB / 326.4 MB, free: 6.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.657e-05/0.004939, allocations: 17.7 kB / 326.5 MB, free: 6.266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.00502, allocations: 318.8 kB / 326.8 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.757e-06/0.005029, allocations: 0 / 326.8 MB, free: 5.945 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.747e-05/0.005057, allocations: 43.41 kB / 326.8 MB, free: 5.891 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.643e-05/0.005083, allocations: 16.8 kB / 326.8 MB, free: 5.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.005085, allocations: 0 / 326.8 MB, free: 5.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.462e-05/0.00513, allocations: 45.72 kB / 326.9 MB, free: 5.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.005139, allocations: 4 kB / 326.9 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.005144, allocations: 4 kB / 326.9 MB, free: 5.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.005156, allocations: 3.938 kB / 326.9 MB, free: 5.809 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.112e-05/0.005207, allocations: 3.984 kB / 326.9 MB, free: 5.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.327e-06/0.00521, allocations: 3.984 kB / 326.9 MB, free: 5.801 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.009e-05/0.00523, allocations: 4 kB / 326.9 MB, free: 5.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-06/0.005234, allocations: 4 kB / 326.9 MB, free: 5.793 MB / 298.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 5.065e-05/0.005285, allocations: 105.8 kB / 327 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.36e-05/0.005298, allocations: 15.92 kB / 327 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/0.005319, allocations: 7.625 kB / 327 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.005322, allocations: 3.938 kB / 327 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.005323, allocations: 0 / 327 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.005326, allocations: 4 kB / 327 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.803e-05/0.005404, allocations: 69.88 kB / 327.1 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.005405, allocations: 0 / 327.1 MB, free: 5.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.194e-05/0.005417, allocations: 4 kB / 327.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.81e-07/0.005418, allocations: 0 / 327.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-06/0.005421, allocations: 0 / 327.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.81e-07/0.005422, allocations: 0 / 327.1 MB, free: 5.559 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.005422, allocations: 4 kB / 327.1 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.294e-05/0.005495, allocations: 143.4 kB / 327.2 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-06/0.0055, allocations: 0 / 327.2 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.005515, allocations: 4 kB / 327.3 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.107e-05/0.005546, allocations: 7.984 kB / 327.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.005578, allocations: 16 kB / 327.3 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-06/0.00558, allocations: 0 / 327.3 MB, free: 5.371 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.355e-05/0.005594, allocations: 16.84 kB / 327.3 MB, free: 5.352 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005594, allocations: 0 / 327.3 MB, free: 5.352 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000115/0.005709, allocations: 4 kB / 327.3 MB, free: 5.348 MB / 298.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.205e-05/0.005781, allocations: 84.44 kB / 327.4 MB, free: 5.258 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.82e-05/0.005839, allocations: 12.86 kB / 327.4 MB, free: 5.242 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.005842, allocations: 4 kB / 327.4 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.708e-05/0.005859, allocations: 12.84 kB / 327.4 MB, free: 5.223 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.489e-05/0.005954, allocations: 3.984 kB / 327.4 MB, free: 5.219 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003228/0.006277, allocations: 141.6 kB / 327.5 MB, free: 5.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.45e-05/0.006311, allocations: 63.41 kB / 327.6 MB, free: 4.973 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.867e-05/0.00633, allocations: 0 / 327.6 MB, free: 4.973 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.006375, allocations: 55.38 kB / 327.7 MB, free: 4.918 MB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.006376, allocations: 0 / 327.7 MB, free: 4.918 MB / 298.7 MB Notification: Performance of Templates: time 0.002139/0.008515, allocations: 0.6602 MB / 328.3 MB, free: 4.273 MB / 298.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.948984975926578]