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.0015/0.0015, allocations: 80.2 kB / 20.65 MB, free: 3.844 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.00123/0.00123, allocations: 173 kB / 24.05 MB, free: 456 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 0.9963/0.9963, allocations: 158.6 MB / 185.9 MB, free: 2.789 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.1487/0.1487, allocations: 32.37 MB / 270.7 MB, free: 14.54 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.283e-06/1.283e-06, allocations: 0 / 348.1 MB, free: 9.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.385e-05/2.513e-05, allocations: 8.219 kB / 348.1 MB, free: 9.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002122/0.002147, allocations: 1.479 MB / 349.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000639/0.002786, allocations: 451.8 kB / 350 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.811e-05/0.002824, allocations: 0 / 350 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.388e-05/0.002848, allocations: 0 / 350 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.002899, allocations: 11.88 kB / 350 MB, free: 7.246 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.003059, allocations: 15.92 kB / 350.1 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.001e-05/0.003119, allocations: 39.86 kB / 350.1 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.556e-05/0.003195, allocations: 3.984 kB / 350.1 MB, free: 7.188 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.003301, allocations: 23.97 kB / 350.1 MB, free: 7.164 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.411e-05/0.003355, allocations: 11.98 kB / 350.1 MB, free: 7.152 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.003371, allocations: 0 / 350.1 MB, free: 7.152 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.626e-06/0.003379, allocations: 7.938 kB / 350.1 MB, free: 7.145 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.611e-05/0.003395, allocations: 4 kB / 350.1 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.227e-05/0.003418, allocations: 15.97 kB / 350.2 MB, free: 7.125 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.475e-05/0.003493, allocations: 31.86 kB / 350.2 MB, free: 7.094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.003495, allocations: 0 / 350.2 MB, free: 7.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.003496, allocations: 0 / 350.2 MB, free: 7.094 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.003499, allocations: 0 / 350.2 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.0002804/0.00378, allocations: 372.6 kB / 350.6 MB, free: 6.695 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.003815, allocations: 8.031 kB / 350.6 MB, free: 6.688 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.52e-05/0.003841, allocations: 8.891 kB / 350.6 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.199e-05/0.003893, allocations: 124.5 kB / 350.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.003902, allocations: 384 / 350.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-06/0.003909, allocations: 4.375 kB / 350.7 MB, free: 6.527 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.00401, allocations: 96.03 kB / 350.8 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/0.004015, allocations: 4.125 kB / 350.8 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.782e-06/0.004022, allocations: 4.375 kB / 350.8 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.004028, allocations: 7.922 kB / 350.8 MB, free: 6.395 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.128e-05/0.004049, allocations: 7.984 kB / 350.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001999/0.004249, allocations: 236.5 kB / 351 MB, free: 6.129 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.73e-05/0.004286, allocations: 27.06 kB / 351.1 MB, free: 6.09 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.383e-05/0.0043, allocations: 11.75 kB / 351.1 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.004317, allocations: 0 / 351.1 MB, free: 6.074 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.004335, allocations: 41.33 kB / 351.1 MB, free: 6.023 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 7.11e-07/0.004336, allocations: 4 kB / 351.1 MB, free: 6.02 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001155/0.004452, allocations: 45.62 kB / 351.2 MB, free: 5.969 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.813e-05/0.00447, allocations: 77.11 kB / 351.2 MB, free: 5.875 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.639e-05/0.004516, allocations: 165.9 kB / 351.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.004527, allocations: 25.7 kB / 351.4 MB, free: 5.664 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.562e-05/0.004552, allocations: 138.9 kB / 351.6 MB, free: 5.523 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.004571, allocations: 7.938 kB / 351.6 MB, free: 5.516 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.004601, allocations: 23.38 kB / 351.6 MB, free: 5.484 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.032e-05/0.004641, allocations: 496.1 kB / 352.1 MB, free: 4.988 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.004653, allocations: 4.109 kB / 352.1 MB, free: 4.984 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.355e-05/0.004676, allocations: 57 kB / 352.1 MB, free: 4.914 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.573e-05/0.004702, allocations: 11.69 kB / 352.2 MB, free: 4.898 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.004704, allocations: 0 / 352.2 MB, free: 4.898 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.803e-05/0.004762, allocations: 53.58 kB / 352.2 MB, free: 4.84 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.004772, allocations: 4 kB / 352.2 MB, free: 4.836 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.004776, allocations: 7.938 kB / 352.2 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.004787, allocations: 0 / 352.2 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.066e-05/0.004838, allocations: 3.984 kB / 352.2 MB, free: 4.824 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.086e-06/0.004841, allocations: 4.312 kB / 352.2 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.797e-05/0.004869, allocations: 11.94 kB / 352.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-06/0.004873, allocations: 4.031 kB / 352.2 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 4.192e-05/0.004915, allocations: 152.6 kB / 352.4 MB, free: 4.645 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.004935, allocations: 4 kB / 352.4 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.225e-05/0.004957, allocations: 15.55 kB / 352.4 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.004958, allocations: 0 / 352.4 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.00496, allocations: 4 kB / 352.4 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.004962, allocations: 0 / 352.4 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.036e-05/0.005053, allocations: 93.27 kB / 352.5 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.005054, allocations: 0 / 352.5 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.55e-05/0.005069, allocations: 7.984 kB / 352.5 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.00507, allocations: 4 kB / 352.5 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-06/0.005075, allocations: 0 / 352.5 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-07/0.005075, allocations: 0 / 352.5 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.005077, allocations: 7.922 kB / 352.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.455e-05/0.005152, allocations: 199.8 kB / 352.7 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-06/0.005158, allocations: 0 / 352.7 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.005172, allocations: 4 kB / 352.7 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.047e-05/0.005223, allocations: 7.984 kB / 352.7 MB, free: 4.262 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.005254, allocations: 7.922 kB / 352.7 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.005257, allocations: 144 / 352.7 MB, free: 4.254 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.038e-05/0.005278, allocations: 131.2 kB / 352.9 MB, free: 4.125 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005278, allocations: 0 / 352.9 MB, free: 4.125 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002003/0.005478, allocations: 11.94 kB / 352.9 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 6.766e-05/0.005546, allocations: 99.22 kB / 353 MB, free: 4.008 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.518e-05/0.005611, allocations: 15.69 kB / 353 MB, free: 3.988 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.005613, allocations: 0 / 353 MB, free: 3.988 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.126e-05/0.005634, allocations: 15.62 kB / 353 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.00019/0.005824, allocations: 7.984 kB / 353 MB, free: 3.961 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003551/0.006179, allocations: 141.3 kB / 353.2 MB, free: 3.797 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.283e-05/0.006202, allocations: 55.34 kB / 353.2 MB, free: 3.723 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.154e-05/0.006223, allocations: 4 kB / 353.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/0.006267, allocations: 74.2 kB / 353.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.006268, allocations: 0 / 353.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of Templates: time 0.002255/0.008522, allocations: 0.684 MB / 354 MB, free: 2.965 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.2214234434068203]