Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001108/0.001108, allocations: 81.95 kB / 21.44 MB, free: 3.062 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.001138/0.001138, allocations: 163.9 kB / 24.84 MB, free: 9.238 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.028/1.028, allocations: 158.6 MB / 186.7 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1617/0.1617, allocations: 32.38 MB / 271.5 MB, free: 14.53 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 348.9 MB, free: 9.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.44e-05/2.575e-05, allocations: 6.25 kB / 348.9 MB, free: 9.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002113/0.002139, allocations: 1.49 MB / 350.4 MB, free: 7.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006762/0.002815, allocations: 443.9 kB / 350.8 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.04e-05/0.002855, allocations: 0 / 350.8 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.874e-05/0.002884, allocations: 3.938 kB / 350.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.316e-05/0.002937, allocations: 7.875 kB / 350.8 MB, free: 7.246 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001805/0.003117, allocations: 19.92 kB / 350.8 MB, free: 7.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.508e-05/0.003193, allocations: 39.84 kB / 350.9 MB, free: 7.188 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.003312, allocations: 3.984 kB / 350.9 MB, free: 7.184 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.00342, allocations: 19.98 kB / 350.9 MB, free: 7.164 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.162e-05/0.003482, allocations: 23.92 kB / 350.9 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.882e-05/0.0035, allocations: 0 / 350.9 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.948e-06/0.00351, allocations: 4 kB / 350.9 MB, free: 7.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.003531, allocations: 3.984 kB / 350.9 MB, free: 7.133 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.003551, allocations: 8 kB / 350.9 MB, free: 7.125 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.673e-05/0.003648, allocations: 27.91 kB / 351 MB, free: 7.098 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.003651, allocations: 3.938 kB / 351 MB, free: 7.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.003651, allocations: 0 / 351 MB, free: 7.094 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.003657, allocations: 0 / 351 MB, free: 7.094 MB / 282.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.0003252/0.003982, allocations: 372.6 kB / 351.3 MB, free: 6.695 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.00402, allocations: 12.03 kB / 351.4 MB, free: 6.684 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.004054, allocations: 8.891 kB / 351.4 MB, free: 6.676 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.543e-05/0.004129, allocations: 120.5 kB / 351.5 MB, free: 6.531 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.004141, allocations: 384 / 351.5 MB, free: 6.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.004149, allocations: 4.375 kB / 351.5 MB, free: 6.527 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.004268, allocations: 100 kB / 351.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.004277, allocations: 192 / 351.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.016e-06/0.004285, allocations: 384 / 351.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.004292, allocations: 3.938 kB / 351.6 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.35e-05/0.004315, allocations: 11.92 kB / 351.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002491/0.004565, allocations: 240.5 kB / 351.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.68e-05/0.004621, allocations: 31.05 kB / 351.9 MB, free: 6.086 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.566e-05/0.004637, allocations: 15.75 kB / 351.9 MB, free: 6.066 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.004651, allocations: 0 / 351.9 MB, free: 6.066 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.004668, allocations: 33.39 kB / 351.9 MB, free: 6.023 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 7.11e-07/0.004669, allocations: 0 / 351.9 MB, free: 6.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001408/0.004809, allocations: 49.56 kB / 352 MB, free: 5.969 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.004838, allocations: 77.11 kB / 352 MB, free: 5.875 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.454e-05/0.004892, allocations: 169.9 kB / 352.2 MB, free: 5.691 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.004906, allocations: 33.83 kB / 352.2 MB, free: 5.652 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.155e-05/0.004937, allocations: 134.9 kB / 352.4 MB, free: 5.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.004954, allocations: 3.953 kB / 352.4 MB, free: 5.512 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.004982, allocations: 27.36 kB / 352.4 MB, free: 5.477 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.652e-05/0.005039, allocations: 496.1 kB / 352.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.233e-05/0.005051, allocations: 7.938 kB / 352.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.637e-05/0.005078, allocations: 49.06 kB / 352.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.886e-05/0.005106, allocations: 15.62 kB / 352.9 MB, free: 4.891 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.005108, allocations: 0 / 352.9 MB, free: 4.891 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.252e-05/0.005171, allocations: 49.64 kB / 353 MB, free: 4.836 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.005184, allocations: 4 kB / 353 MB, free: 4.832 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.005189, allocations: 7.969 kB / 353 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.0052, allocations: 4 kB / 353 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.342e-05/0.005264, allocations: 0 / 353 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.005269, allocations: 4 kB / 353 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.618e-05/0.005295, allocations: 7.984 kB / 353 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-06/0.0053, allocations: 4 kB / 353 MB, free: 4.805 MB / 282.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.384e-05/0.005354, allocations: 152.6 kB / 353.2 MB, free: 4.645 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.929e-05/0.005373, allocations: 7.938 kB / 353.2 MB, free: 4.637 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.494e-05/0.005398, allocations: 11.56 kB / 353.2 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.0054, allocations: 0 / 353.2 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.005402, allocations: 4 kB / 353.2 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.00541, allocations: 4 kB / 353.2 MB, free: 4.621 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.132e-05/0.005501, allocations: 101.2 kB / 353.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.005503, allocations: 0 / 353.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.01e-05/0.005523, allocations: 4 kB / 353.3 MB, free: 4.492 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.005526, allocations: 3.984 kB / 353.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.005532, allocations: 0 / 353.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.005533, allocations: 0 / 353.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.005534, allocations: 3.938 kB / 353.3 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.404e-05/0.005628, allocations: 191.9 kB / 353.5 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.284e-06/0.005636, allocations: 4.031 kB / 353.5 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.005651, allocations: 4 kB / 353.5 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.537e-05/0.005687, allocations: 4 kB / 353.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.005725, allocations: 7.922 kB / 353.5 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.005729, allocations: 7.922 kB / 353.5 MB, free: 4.25 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.352e-05/0.005752, allocations: 131.2 kB / 353.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005752, allocations: 0 / 353.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001466/0.005899, allocations: 7.938 kB / 353.7 MB, free: 4.113 MB / 282.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 9.325e-05/0.005992, allocations: 91.25 kB / 353.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001248/0.006117, allocations: 23.67 kB / 353.8 MB, free: 3.988 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.00612, allocations: 3.938 kB / 353.8 MB, free: 3.984 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.96e-05/0.006149, allocations: 11.69 kB / 353.8 MB, free: 3.969 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.006325, allocations: 8 kB / 353.8 MB, free: 3.961 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.00679, allocations: 141.2 kB / 353.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.425e-05/0.006815, allocations: 51.36 kB / 354 MB, free: 3.727 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.706e-05/0.006842, allocations: 12.28 kB / 354 MB, free: 3.715 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.006889, allocations: 78.19 kB / 354.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.00689, allocations: 0 / 354.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of Templates: time 0.002216/0.009106, allocations: 0.6961 MB / 354.8 MB, free: 2.945 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.1262256517075]