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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 106.5 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 187.2 kB / 19.38 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1954/0.1954, allocations: 44.19 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 63.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.289, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00226/0.2913, allocations: 1.45 MB / 0.521 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007102/0.292, allocations: 414.1 kB / 0.5214 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.454e-05/0.2921, allocations: 1.281 kB / 0.5214 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.918e-05/0.2921, allocations: 4.5 kB / 0.5214 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.8e-05/0.2922, allocations: 9.844 kB / 0.5214 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.2924, allocations: 13.62 kB / 0.5214 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.928e-05/0.2925, allocations: 38.48 kB / 0.5214 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.898e-05/0.2926, allocations: 5.75 kB / 0.5214 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.895e-05/0.2927, allocations: 17.8 kB / 0.5215 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.601e-05/0.2928, allocations: 17.58 kB / 0.5215 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.2928, allocations: 2.75 kB / 0.5215 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.15e-05/0.2928, allocations: 2.625 kB / 0.5215 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.19e-05/0.2928, allocations: 11.02 kB / 0.5215 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.77e-05/0.2929, allocations: 20.56 kB / 0.5215 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.08e-05/0.2929, allocations: 32.89 kB / 0.5215 GB, free: 2.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.293, allocations: 0 / 0.5215 GB, free: 2.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.293, allocations: 5.75 kB / 0.5215 GB, free: 2.211 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.293, allocations: 3.938 kB / 0.5215 GB, free: 2.207 MB / 382.1 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.000344/0.2933, allocations: 345.2 kB / 0.5219 GB, free: 1.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.2934, allocations: 8.438 kB / 0.5219 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.41e-05/0.2934, allocations: 7.844 kB / 0.5219 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.474e-05/0.2935, allocations: 169.9 kB / 0.5221 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.2935, allocations: 5.594 kB / 0.5221 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-06/0.2935, allocations: 1.562 kB / 0.5221 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/0.2936, allocations: 60.66 kB / 0.5221 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.2937, allocations: 0.75 kB / 0.5221 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.2937, allocations: 5.219 kB / 0.5221 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2937, allocations: 0 / 0.5221 GB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.323e-05/0.2938, allocations: 24.48 kB / 0.5221 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002867/0.2941, allocations: 260.7 kB / 0.5224 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.03e-05/0.2941, allocations: 30.2 kB / 0.5224 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.336e-05/0.2942, allocations: 18.34 kB / 0.5224 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.2942, allocations: 0 / 0.5224 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.55e-05/0.2942, allocations: 32.41 kB / 0.5225 GB, free: 1.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.2942, allocations: 4 kB / 0.5225 GB, free: 1.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002149/0.2945, allocations: 69.36 kB / 0.5225 GB, free: 1.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.053e-05/0.2945, allocations: 78.95 kB / 0.5226 GB, free: 1.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.647e-05/0.2946, allocations: 107.7 kB / 0.5227 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.2946, allocations: 26.36 kB / 0.5227 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.394e-05/0.2946, allocations: 87.27 kB / 0.5228 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.2946, allocations: 6.297 kB / 0.5228 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.2947, allocations: 22.27 kB / 0.5229 GB, free: 0.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.683e-05/0.2947, allocations: 317.9 kB / 0.5232 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.683e-05/0.2948, allocations: 11.94 kB / 0.5232 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.607e-05/0.2948, allocations: 26.64 kB / 0.5232 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.389e-05/0.2949, allocations: 28.45 kB / 0.5232 GB, free: 488 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2949, allocations: 4.688 kB / 0.5232 GB, free: 484 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001144/0.295, allocations: 65.95 kB / 0.5233 GB, free: 436 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.295, allocations: 5.438 kB / 0.5233 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.295, allocations: 1.188 kB / 0.5233 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.2951, allocations: 0 / 0.5233 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.328e-05/0.2951, allocations: 9.422 kB / 0.5233 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2951, allocations: 0 / 0.5233 GB, free: 432 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.895e-05/0.2952, allocations: 16.27 kB / 0.5233 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-06/0.2952, allocations: 0.9688 kB / 0.5233 GB, free: 424 kB / 382.1 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.81e-05/0.2953, allocations: 121.8 kB / 0.5234 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.2953, allocations: 6.625 kB / 0.5234 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.928e-05/0.2953, allocations: 13.12 kB / 0.5235 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.2953, allocations: 0.6562 kB / 0.5235 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2953, allocations: 0.9375 kB / 0.5235 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.561e-05/0.2954, allocations: 79.05 kB / 0.5235 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.2954, allocations: 5.734 kB / 0.5235 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.451e-05/0.2955, allocations: 7.453 kB / 0.5235 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.814e-05/0.2955, allocations: 14.75 kB / 0.5236 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001427/0.2957, allocations: 134.4 kB / 0.5237 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001876/0.2959, allocations: 218.2 kB / 0.5239 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.163e-05/0.2959, allocations: 18.61 kB / 0.5239 GB, free: 15.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.021e-05/0.296, allocations: 88.23 kB / 0.524 GB, free: 15.76 MB / 398.1 MB Notification: Performance of Backend: time 2.8e-07/0.296, allocations: 4.062 kB / 0.524 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003458/0.2963, allocations: 87.23 kB / 0.5241 GB, free: 15.69 MB / 398.1 MB Notification: Performance of SimCode: time 0.0003624/0.2967, allocations: 0.5709 MB / 0.5246 GB, free: 15.1 MB / 398.1 MB Notification: Performance of Templates: time 0.002584/0.2993, allocations: 0.6524 MB / 0.5253 GB, free: 15.03 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches