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.001014/0.001014, allocations: 88.2 kB / 20.94 MB, free: 3.605 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.001087/0.001087, allocations: 169 kB / 24.24 MB, free: 316 kB / 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.022/1.022, allocations: 158.6 MB / 186 MB, free: 2.504 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.146/0.146, allocations: 32.38 MB / 270.7 MB, free: 14.74 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 2.525e-06/2.525e-06, allocations: 0 / 347.6 MB, free: 9.785 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.037e-05/2.289e-05, allocations: 6.25 kB / 347.6 MB, free: 9.777 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001575/0.001598, allocations: 1.483 MB / 349.1 MB, free: 8.289 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005279/0.002126, allocations: 451.8 kB / 349.6 MB, free: 7.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.349e-05/0.002159, allocations: 4 kB / 349.6 MB, free: 7.836 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.144e-05/0.002181, allocations: 0 / 349.6 MB, free: 7.836 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.61e-05/0.002217, allocations: 7.875 kB / 349.6 MB, free: 7.828 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.002376, allocations: 15.92 kB / 349.6 MB, free: 7.812 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.418e-05/0.002441, allocations: 35.86 kB / 349.6 MB, free: 7.777 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.259e-05/0.002523, allocations: 7.984 kB / 349.6 MB, free: 7.77 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.437e-05/0.002608, allocations: 27.91 kB / 349.7 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.822e-05/0.002656, allocations: 11.98 kB / 349.7 MB, free: 7.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.002676, allocations: 4 kB / 349.7 MB, free: 7.727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.376e-06/0.002685, allocations: 4 kB / 349.7 MB, free: 7.723 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.446e-05/0.002699, allocations: 4 kB / 349.7 MB, free: 7.719 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.503e-05/0.002724, allocations: 19.91 kB / 349.7 MB, free: 7.699 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.131e-05/0.002805, allocations: 19.92 kB / 349.7 MB, free: 7.68 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.002807, allocations: 4 kB / 349.7 MB, free: 7.676 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.002808, allocations: 0 / 349.7 MB, free: 7.676 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.002812, allocations: 0 / 349.7 MB, free: 7.676 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.0003159/0.003128, allocations: 368.6 kB / 350.1 MB, free: 7.281 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.003168, allocations: 12.03 kB / 350.1 MB, free: 7.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.816e-05/0.003206, allocations: 8.891 kB / 350.1 MB, free: 7.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.359e-05/0.003279, allocations: 120.5 kB / 350.2 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.003289, allocations: 384 / 350.2 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.003299, allocations: 4.375 kB / 350.2 MB, free: 7.113 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.003411, allocations: 96.02 kB / 350.3 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.099e-06/0.003416, allocations: 4.125 kB / 350.3 MB, free: 6.992 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.003428, allocations: 8.312 kB / 350.3 MB, free: 6.984 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.003436, allocations: 3.938 kB / 350.3 MB, free: 6.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.939e-05/0.003466, allocations: 7.984 kB / 350.4 MB, free: 6.973 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002447/0.00371, allocations: 263.8 kB / 350.6 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.836e-05/0.003759, allocations: 27.06 kB / 350.6 MB, free: 6.641 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.931e-05/0.003778, allocations: 11.75 kB / 350.7 MB, free: 6.625 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.37e-05/0.003792, allocations: 0 / 350.7 MB, free: 6.625 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.003812, allocations: 49.27 kB / 350.7 MB, free: 6.566 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.003813, allocations: 0 / 350.7 MB, free: 6.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.00012/0.003933, allocations: 37.69 kB / 350.7 MB, free: 6.523 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.003961, allocations: 77.11 kB / 350.8 MB, free: 6.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.645e-05/0.004017, allocations: 169.9 kB / 351 MB, free: 6.246 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.004029, allocations: 33.83 kB / 351 MB, free: 6.207 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.167e-05/0.00406, allocations: 134.8 kB / 351.1 MB, free: 6.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.004079, allocations: 11.95 kB / 351.2 MB, free: 6.059 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/0.004104, allocations: 19.38 kB / 351.2 MB, free: 6.031 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.657e-05/0.004161, allocations: 0.4884 MB / 351.7 MB, free: 5.531 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.377e-05/0.004175, allocations: 4 kB / 351.7 MB, free: 5.527 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.365e-05/0.004198, allocations: 49.02 kB / 351.7 MB, free: 5.465 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.69e-05/0.004225, allocations: 15.69 kB / 351.7 MB, free: 5.445 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.004227, allocations: 0 / 351.7 MB, free: 5.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.466e-05/0.004271, allocations: 45.64 kB / 351.8 MB, free: 5.395 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.004284, allocations: 7.938 kB / 351.8 MB, free: 5.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.004291, allocations: 8.031 kB / 351.8 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.004303, allocations: 0 / 351.8 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.187e-05/0.004355, allocations: 3.984 kB / 351.8 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.004365, allocations: 0 / 351.8 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.207e-05/0.004387, allocations: 7.938 kB / 351.8 MB, free: 5.367 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.004392, allocations: 4 kB / 351.8 MB, free: 5.363 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.28e-05/0.004445, allocations: 156.6 kB / 352 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.004461, allocations: 11.92 kB / 352 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.668e-05/0.004478, allocations: 7.625 kB / 352 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.004479, allocations: 0 / 352 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.004483, allocations: 8 kB / 352 MB, free: 5.176 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.004486, allocations: 0 / 352 MB, free: 5.176 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.6e-05/0.004552, allocations: 116.6 kB / 352.1 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.004553, allocations: 3.938 kB / 352.1 MB, free: 5.023 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.269e-05/0.004565, allocations: 8 kB / 352.1 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.41e-07/0.004566, allocations: 0 / 352.1 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.004573, allocations: 3.938 kB / 352.1 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.72e-07/0.004574, allocations: 0 / 352.1 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.004575, allocations: 0 / 352.1 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.765e-05/0.004642, allocations: 191.8 kB / 352.3 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-06/0.00465, allocations: 12.03 kB / 352.3 MB, free: 4.793 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.004668, allocations: 7.922 kB / 352.3 MB, free: 4.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.456e-05/0.004702, allocations: 4 kB / 352.3 MB, free: 4.781 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.004744, allocations: 3.984 kB / 352.3 MB, free: 4.777 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.004747, allocations: 4 kB / 352.3 MB, free: 4.773 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.291e-05/0.00477, allocations: 131.5 kB / 352.5 MB, free: 4.645 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.00477, allocations: 0 / 352.5 MB, free: 4.645 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001377/0.004907, allocations: 11.94 kB / 352.5 MB, free: 4.633 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 5.051e-05/0.004958, allocations: 87.25 kB / 352.6 MB, free: 4.539 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.246e-05/0.00503, allocations: 27.81 kB / 352.6 MB, free: 4.508 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.005032, allocations: 0 / 352.6 MB, free: 4.508 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.636e-05/0.005048, allocations: 19.62 kB / 352.6 MB, free: 4.484 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.005186, allocations: 0 / 352.6 MB, free: 4.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003639/0.00555, allocations: 137.3 kB / 352.7 MB, free: 4.324 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.957e-05/0.005579, allocations: 55.59 kB / 352.8 MB, free: 4.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.94e-05/0.005599, allocations: 4.141 kB / 352.8 MB, free: 4.246 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.488e-05/0.005624, allocations: 16.5 kB / 352.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.005625, allocations: 0 / 352.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of Templates: time 0.001967/0.007591, allocations: 0.6419 MB / 353.5 MB, free: 3.598 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.175919266184792]