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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 111.3 kB / 17.08 MB, free: 6.016 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.001254/0.001254, allocations: 199 kB / 18.01 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1947/0.1947, allocations: 43.52 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 71.89 kB / 442.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09246/0.09389, allocations: 57.79 MB / 0.4885 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002401/0.09633, allocations: 1.439 MB / 0.4899 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006619/0.09701, allocations: 459.8 kB / 0.4904 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.448e-05/0.0971, allocations: 4 kB / 0.4904 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.366e-05/0.09713, allocations: 0 / 0.4904 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.429e-05/0.09718, allocations: 7.875 kB / 0.4904 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001492/0.09734, allocations: 15.98 kB / 0.4904 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.868e-05/0.09743, allocations: 39.84 kB / 0.4904 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.233e-05/0.09752, allocations: 7.984 kB / 0.4904 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.971e-05/0.0976, allocations: 15.94 kB / 0.4905 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.607e-05/0.09767, allocations: 15.92 kB / 0.4905 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.09769, allocations: 8 kB / 0.4905 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.217e-05/0.09771, allocations: 4 kB / 0.4905 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.019e-05/0.09773, allocations: 15.91 kB / 0.4905 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.178e-05/0.09777, allocations: 11.94 kB / 0.4905 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.583e-05/0.09787, allocations: 35.83 kB / 0.4905 GB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/0.09791, allocations: 0 / 0.4905 GB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09792, allocations: 0 / 0.4905 GB, free: 9.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.09793, allocations: 0 / 0.4905 GB, free: 9.746 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.0004022/0.09833, allocations: 351.3 kB / 0.4909 GB, free: 9.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.09838, allocations: 19.89 kB / 0.4909 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.85e-05/0.09841, allocations: 0.9375 kB / 0.4909 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.09852, allocations: 168.3 kB / 0.4911 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.09853, allocations: 384 / 0.4911 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.09855, allocations: 384 / 0.4911 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.0987, allocations: 71.64 kB / 0.4911 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.09872, allocations: 0 / 0.4911 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.09873, allocations: 0 / 0.4911 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.09874, allocations: 4 kB / 0.4911 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.09888, allocations: 19.98 kB / 0.4911 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003462/0.09923, allocations: 264.9 kB / 0.4914 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.35e-05/0.09933, allocations: 34.5 kB / 0.4914 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.616e-05/0.09938, allocations: 20.86 kB / 0.4915 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.09941, allocations: 11.92 kB / 0.4915 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.09943, allocations: 30.56 kB / 0.4915 GB, free: 8.602 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.09944, allocations: 0 / 0.4915 GB, free: 8.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002168/0.09966, allocations: 61.67 kB / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.09975, allocations: 77.11 kB / 0.4916 GB, free: 8.441 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.199e-05/0.09985, allocations: 117.7 kB / 0.4917 GB, free: 8.316 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.09988, allocations: 25.7 kB / 0.4918 GB, free: 8.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.09992, allocations: 100.2 kB / 0.4919 GB, free: 8.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.09994, allocations: 4 kB / 0.4919 GB, free: 8.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/0.09998, allocations: 13.72 kB / 0.4919 GB, free: 8.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.392e-05/0.1001, allocations: 314.8 kB / 0.4922 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/0.1001, allocations: 11.98 kB / 0.4922 GB, free: 7.832 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.799e-05/0.1002, allocations: 25.7 kB / 0.4922 GB, free: 7.801 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.87e-05/0.1003, allocations: 32.81 kB / 0.4922 GB, free: 7.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1003, allocations: 0 / 0.4922 GB, free: 7.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001231/0.1004, allocations: 61.59 kB / 0.4923 GB, free: 7.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.1004, allocations: 4 kB / 0.4923 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.1004, allocations: 0 / 0.4923 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.1005, allocations: 3.984 kB / 0.4923 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.23e-05/0.1005, allocations: 7.938 kB / 0.4923 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1005, allocations: 0 / 0.4923 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.687e-05/0.1006, allocations: 7.984 kB / 0.4923 GB, free: 7.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.188e-06/0.1006, allocations: 12 kB / 0.4923 GB, free: 7.664 MB / 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 0.0001122/0.1007, allocations: 117.7 kB / 0.4924 GB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.1008, allocations: 4 kB / 0.4925 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.052e-05/0.1008, allocations: 3.531 kB / 0.4925 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.1008, allocations: 0 / 0.4925 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.1008, allocations: 0 / 0.4925 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1008, allocations: 4 kB / 0.4925 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.101, allocations: 165.6 kB / 0.4926 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.101, allocations: 0 / 0.4926 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.881e-05/0.101, allocations: 11.98 kB / 0.4926 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.101, allocations: 0 / 0.4926 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.101, allocations: 0 / 0.4926 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1011, allocations: 0 / 0.4926 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1011, allocations: 3.938 kB / 0.4926 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.1012, allocations: 159.3 kB / 0.4928 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.835e-05/0.1013, allocations: 81.05 kB / 0.4929 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1013, allocations: 4.031 kB / 0.4929 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.1014, allocations: 15.98 kB / 0.4929 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.1014, allocations: 0 / 0.4929 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.1014, allocations: 7.984 kB / 0.4929 GB, free: 7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.487e-05/0.1015, allocations: 87.22 kB / 0.493 GB, free: 6.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1015, allocations: 0 / 0.493 GB, free: 6.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002237/0.1018, allocations: 8 kB / 0.493 GB, free: 6.906 MB / 382.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.208e-05/0.1018, allocations: 91.25 kB / 0.4931 GB, free: 6.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.102, allocations: 35.97 kB / 0.4931 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.102, allocations: 0 / 0.4931 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.695e-05/0.1021, allocations: 11.94 kB / 0.4931 GB, free: 6.762 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.1023, allocations: 10.59 kB / 0.4931 GB, free: 6.754 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003034/0.1026, allocations: 160.2 kB / 0.4933 GB, free: 6.566 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.1028, allocations: 0.6846 MB / 0.4939 GB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.853e-05/0.1029, allocations: 7.438 kB / 0.494 GB, free: 5.848 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1029, allocations: 0 / 0.494 GB, free: 5.848 MB / 382.1 MB Notification: Performance of Templates: time 0.001803/0.1047, allocations: 0.6445 MB / 0.4946 GB, free: 5.207 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches