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.001013/0.001013, allocations: 108.7 kB / 18.45 MB, free: 4.645 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.0009658/0.0009658, allocations: 183.1 kB / 19.38 MB, free: 3.723 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.216/1.216, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.1819/0.1819, allocations: 44.19 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 55.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3104, allocations: 60.83 MB / 0.5195 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002171/0.3126, allocations: 1.449 MB / 0.521 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005355/0.3132, allocations: 414.1 kB / 0.5214 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.199e-05/0.3132, allocations: 0 / 0.5214 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.536e-05/0.3133, allocations: 6.047 kB / 0.5214 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.248e-05/0.3133, allocations: 7.938 kB / 0.5214 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001544/0.3135, allocations: 15.52 kB / 0.5214 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.731e-05/0.3135, allocations: 34.28 kB / 0.5214 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.988e-05/0.3136, allocations: 8.938 kB / 0.5214 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.339e-05/0.3137, allocations: 18.59 kB / 0.5214 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.982e-05/0.3138, allocations: 20.84 kB / 0.5215 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.3138, allocations: 6.031 kB / 0.5215 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.468e-05/0.3138, allocations: 3.312 kB / 0.5215 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.3139, allocations: 2.906 kB / 0.5215 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.74e-05/0.3139, allocations: 17.7 kB / 0.5215 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.599e-05/0.314, allocations: 33.33 kB / 0.5215 GB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.314, allocations: 0 / 0.5215 GB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.314, allocations: 0 / 0.5215 GB, free: 2.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.314, allocations: 3.938 kB / 0.5215 GB, free: 2.227 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.0003383/0.3143, allocations: 345.7 kB / 0.5219 GB, free: 1.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.3144, allocations: 8.969 kB / 0.5219 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.3144, allocations: 7.609 kB / 0.5219 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.519e-05/0.3145, allocations: 174.8 kB / 0.522 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.3145, allocations: 8.375 kB / 0.522 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.3145, allocations: 3.391 kB / 0.5221 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.3146, allocations: 59.91 kB / 0.5221 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.3147, allocations: 1.125 kB / 0.5221 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3147, allocations: 0 / 0.5221 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3147, allocations: 1.188 kB / 0.5221 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.158e-05/0.3148, allocations: 19.64 kB / 0.5221 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002862/0.3151, allocations: 268.3 kB / 0.5224 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.447e-05/0.3151, allocations: 34.98 kB / 0.5224 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.251e-05/0.3152, allocations: 13.72 kB / 0.5224 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.3152, allocations: 4 kB / 0.5224 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.437e-05/0.3152, allocations: 32.39 kB / 0.5225 GB, free: 1.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3152, allocations: 5.156 kB / 0.5225 GB, free: 1.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002105/0.3155, allocations: 65.08 kB / 0.5225 GB, free: 1.184 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/0.3155, allocations: 78.11 kB / 0.5226 GB, free: 1.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.693e-05/0.3156, allocations: 112 kB / 0.5227 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.3156, allocations: 27.42 kB / 0.5227 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.511e-05/0.3156, allocations: 86.66 kB / 0.5228 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.458e-05/0.3156, allocations: 5.625 kB / 0.5228 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.904e-05/0.3157, allocations: 18.47 kB / 0.5228 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.681e-05/0.3157, allocations: 321.4 kB / 0.5232 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.591e-05/0.3158, allocations: 12.92 kB / 0.5232 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.484e-05/0.3158, allocations: 25.55 kB / 0.5232 GB, free: 0.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.422e-05/0.3159, allocations: 33.53 kB / 0.5232 GB, free: 492 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-06/0.3159, allocations: 0 / 0.5232 GB, free: 492 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001133/0.316, allocations: 61.67 kB / 0.5233 GB, free: 448 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.316, allocations: 6.422 kB / 0.5233 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.316, allocations: 0 / 0.5233 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.3161, allocations: 1.984 kB / 0.5233 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.159e-05/0.3161, allocations: 4.438 kB / 0.5233 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.3161, allocations: 4.453 kB / 0.5233 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.878e-05/0.3162, allocations: 16.19 kB / 0.5233 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.3162, allocations: 1.125 kB / 0.5233 GB, free: 436 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.93e-05/0.3163, allocations: 120.9 kB / 0.5234 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.3163, allocations: 6.656 kB / 0.5234 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.101e-05/0.3163, allocations: 13.22 kB / 0.5234 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3163, allocations: 0.9688 kB / 0.5235 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3163, allocations: 0.5625 kB / 0.5235 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.3163, allocations: 1.062 kB / 0.5235 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.3165, allocations: 163.2 kB / 0.5236 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3165, allocations: 0 / 0.5236 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.821e-05/0.3165, allocations: 5.219 kB / 0.5236 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.3165, allocations: 0 / 0.5236 GB, free: 88 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.3165, allocations: 5.688 kB / 0.5236 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.3165, allocations: 0.75 kB / 0.5236 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3165, allocations: 5.344 kB / 0.5236 GB, free: 80 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001694/0.3167, allocations: 149.8 kB / 0.5238 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.393e-05/0.3168, allocations: 82.94 kB / 0.5238 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.3168, allocations: 1.781 kB / 0.5238 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.57e-05/0.3169, allocations: 8 kB / 0.5239 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.3169, allocations: 10.61 kB / 0.5239 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.3169, allocations: 1.609 kB / 0.5239 GB, free: 15.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.993e-05/0.317, allocations: 88.73 kB / 0.524 GB, free: 15.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.317, allocations: 0 / 0.524 GB, free: 15.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002082/0.3172, allocations: 5.375 kB / 0.524 GB, free: 15.76 MB / 398.1 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 8.262e-05/0.3173, allocations: 96.42 kB / 0.524 GB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001462/0.3174, allocations: 30.39 kB / 0.5241 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3174, allocations: 4 kB / 0.5241 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.958e-05/0.3175, allocations: 15.2 kB / 0.5241 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.3177, allocations: 5.125 kB / 0.5241 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002783/0.318, allocations: 139.2 kB / 0.5242 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.3182, allocations: 0.6815 MB / 0.5249 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.079e-05/0.3183, allocations: 15.09 kB / 0.5249 GB, free: 14.8 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3183, allocations: 4.062 kB / 0.5249 GB, free: 14.8 MB / 398.1 MB Notification: Performance of Templates: time 0.001854/0.3201, allocations: 0.6457 MB / 0.5255 GB, free: 14.75 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