Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009089/0.0009089, allocations: 172.8 kB / 16.07 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.239/1.239, allocations: 205.6 MB / 222.4 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007983/0.0007984, allocations: 87.08 kB / 270.8 MB, free: 8.121 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3031/0.3031, allocations: 43.68 MB / 362.7 MB, free: 52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003008, allocations: 8 kB / 432.3 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.09917, allocations: 58.85 MB / 491.2 MB, free: 9.812 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001807/0.101, allocations: 1.157 MB / 492.3 MB, free: 8.645 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008604/0.1019, allocations: 433.3 kB / 492.7 MB, free: 8.215 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.623e-05/0.102, allocations: 4 kB / 492.7 MB, free: 8.211 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.237e-05/0.102, allocations: 7.922 kB / 492.7 MB, free: 8.203 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.132e-05/0.1021, allocations: 0 / 492.7 MB, free: 8.203 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.1023, allocations: 23.91 kB / 492.8 MB, free: 8.18 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.482e-05/0.1024, allocations: 31.86 kB / 492.8 MB, free: 8.148 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.1025, allocations: 8 kB / 492.8 MB, free: 8.141 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.611e-05/0.1026, allocations: 12 kB / 492.8 MB, free: 8.129 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.04e-05/0.1027, allocations: 11.92 kB / 492.8 MB, free: 8.117 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.1027, allocations: 0 / 492.8 MB, free: 8.117 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.466e-05/0.1027, allocations: 4 kB / 492.8 MB, free: 8.113 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.792e-05/0.1028, allocations: 15.91 kB / 492.9 MB, free: 8.098 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.77e-05/0.1029, allocations: 37.64 kB / 492.9 MB, free: 8.055 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.873e-05/0.103, allocations: 27.89 kB / 492.9 MB, free: 8.027 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.103, allocations: 0 / 492.9 MB, free: 8.027 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.103, allocations: 0 / 492.9 MB, free: 8.027 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.103, allocations: 7.938 kB / 492.9 MB, free: 8.02 MB / 378.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.0005058/0.1035, allocations: 343.7 kB / 493.3 MB, free: 7.637 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.1036, allocations: 12.03 kB / 493.3 MB, free: 7.625 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.326e-05/0.1036, allocations: 8.781 kB / 493.3 MB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.1038, allocations: 172.3 kB / 493.4 MB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.1038, allocations: 384 / 493.4 MB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.1038, allocations: 8.375 kB / 493.5 MB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.104, allocations: 63.7 kB / 493.5 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.1041, allocations: 4 kB / 493.5 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1041, allocations: 0 / 493.5 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1041, allocations: 0 / 493.5 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.1043, allocations: 27.92 kB / 493.5 MB, free: 7.297 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004591/0.1047, allocations: 272.8 kB / 493.8 MB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.1049, allocations: 34.56 kB / 493.9 MB, free: 6.938 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.416e-05/0.105, allocations: 12.92 kB / 493.9 MB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.105, allocations: 4 kB / 493.9 MB, free: 6.918 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.105, allocations: 34.56 kB / 493.9 MB, free: 6.875 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 3.607e-06/0.105, allocations: 3.984 kB / 493.9 MB, free: 6.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003345/0.1054, allocations: 69.61 kB / 494 MB, free: 6.797 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.1054, allocations: 81.05 kB / 494.1 MB, free: 6.699 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.1056, allocations: 110 kB / 494.2 MB, free: 6.582 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.1056, allocations: 33.7 kB / 494.2 MB, free: 6.543 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.143e-05/0.1057, allocations: 88.12 kB / 494.3 MB, free: 6.453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.1057, allocations: 3.906 kB / 494.3 MB, free: 6.449 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.1057, allocations: 0 / 494.3 MB, free: 6.449 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1058, allocations: 314.8 kB / 494.6 MB, free: 6.133 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.963e-05/0.1059, allocations: 15.98 kB / 494.6 MB, free: 6.117 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.237e-05/0.106, allocations: 29.7 kB / 494.6 MB, free: 6.082 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.1061, allocations: 36.72 kB / 494.7 MB, free: 6.043 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.1061, allocations: 0 / 494.7 MB, free: 6.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001759/0.1063, allocations: 61.69 kB / 494.7 MB, free: 5.977 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1063, allocations: 4 kB / 494.7 MB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1064, allocations: 4.031 kB / 494.7 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1064, allocations: 0 / 494.7 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1065, allocations: 7.984 kB / 494.7 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.1065, allocations: 4 kB / 494.7 MB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.535e-05/0.1066, allocations: 11.91 kB / 494.8 MB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.1066, allocations: 3.984 kB / 494.8 MB, free: 5.941 MB / 378.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 ($PRE.hysteresis.y,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 9.104e-05/0.1067, allocations: 113.8 kB / 494.9 MB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.19e-05/0.1068, allocations: 4 kB / 494.9 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.215e-05/0.1068, allocations: 11.53 kB / 494.9 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1068, allocations: 0 / 494.9 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1069, allocations: 0 / 494.9 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1069, allocations: 0 / 494.9 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.1071, allocations: 165.5 kB / 495.1 MB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1071, allocations: 3.938 kB / 495.1 MB, free: 5.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.662e-05/0.1072, allocations: 7.984 kB / 495.1 MB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1072, allocations: 4 kB / 495.1 MB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.1072, allocations: 8 kB / 495.1 MB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1072, allocations: 4 kB / 495.1 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1073, allocations: 0 / 495.1 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.1075, allocations: 147.5 kB / 495.2 MB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.1075, allocations: 85 kB / 495.3 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.1076, allocations: 4 kB / 495.3 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.1077, allocations: 12.03 kB / 495.3 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.1078, allocations: 15.92 kB / 495.3 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.1078, allocations: 3.984 kB / 495.3 MB, free: 5.273 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.508e-05/0.1079, allocations: 79.28 kB / 495.4 MB, free: 5.195 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1079, allocations: 0 / 495.4 MB, free: 5.195 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003842/0.1083, allocations: 12 kB / 495.4 MB, free: 5.184 MB / 378.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 0.0001171/0.1084, allocations: 110.4 kB / 495.5 MB, free: 5.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001859/0.1086, allocations: 35.97 kB / 495.6 MB, free: 5.035 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1086, allocations: 0 / 495.6 MB, free: 5.035 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.025e-05/0.1087, allocations: 12 kB / 495.6 MB, free: 5.023 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.1091, allocations: 7.938 kB / 495.6 MB, free: 5.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003603/0.1094, allocations: 136.7 kB / 495.7 MB, free: 4.855 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1098, allocations: 0.6848 MB / 496.4 MB, free: 4.145 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.234e-05/0.1098, allocations: 8.219 kB / 496.4 MB, free: 4.137 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.1099, allocations: 7.438 kB / 496.4 MB, free: 4.133 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1099, allocations: 0 / 496.4 MB, free: 4.133 MB / 378.7 MB Notification: Performance of Templates: time 0.003076/0.113, allocations: 496.2 kB / 496.9 MB, free: 3.652 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches