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.001587/0.001587, allocations: 106.4 kB / 17.03 MB, free: 5.703 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.001794/0.001794, allocations: 194.9 kB / 17.96 MB, free: 5.082 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.364/1.364, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.2119/0.2119, allocations: 43.52 MB / 314.7 MB, free: 480 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.001457/0.001458, allocations: 73.61 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1047, allocations: 57.79 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002439/0.1072, allocations: 1.427 MB / 443.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005855/0.1078, allocations: 454.7 kB / 443.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.484e-05/0.1078, allocations: 4 kB / 443.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.614e-05/0.1079, allocations: 7.922 kB / 443.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.423e-05/0.1079, allocations: 7.922 kB / 443.8 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001759/0.1081, allocations: 19.92 kB / 443.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 6.894e-05/0.1082, allocations: 39.86 kB / 443.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.24e-05/0.1083, allocations: 4 kB / 443.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.354e-05/0.1083, allocations: 15.97 kB / 443.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.637e-05/0.1084, allocations: 19.92 kB / 443.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.1084, allocations: 4 kB / 443.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.828e-06/0.1084, allocations: 4 kB / 443.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.71e-05/0.1085, allocations: 11.88 kB / 444 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.1085, allocations: 15.92 kB / 444 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 7.443e-05/0.1086, allocations: 35.83 kB / 444 MB, free: 4.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1086, allocations: 0 / 444 MB, free: 4.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1086, allocations: 3.938 kB / 444 MB, free: 4.062 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.1086, allocations: 0 / 444 MB, free: 4.062 MB / 318.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.0003556/0.109, allocations: 347.4 kB / 444.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.109, allocations: 15.89 kB / 444.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.109, allocations: 8.922 kB / 444.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.413e-05/0.1091, allocations: 168.2 kB / 444.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.1092, allocations: 384 / 444.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.1092, allocations: 4.375 kB / 444.5 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.1093, allocations: 63.7 kB / 444.6 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.882e-06/0.1093, allocations: 0 / 444.6 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.1093, allocations: 8 kB / 444.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1093, allocations: 0 / 444.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.345e-05/0.1094, allocations: 27.92 kB / 444.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003144/0.1097, allocations: 256.9 kB / 444.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.674e-05/0.1098, allocations: 26.58 kB / 444.9 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.464e-05/0.1099, allocations: 20.91 kB / 444.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1099, allocations: 4 kB / 444.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1099, allocations: 30.56 kB / 445 MB, free: 2.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1099, allocations: 0 / 445 MB, free: 2.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002396/0.1102, allocations: 69.61 kB / 445 MB, free: 2.859 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.1102, allocations: 77.11 kB / 445.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.19e-05/0.1103, allocations: 109.8 kB / 445.2 MB, free: 2.648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.1103, allocations: 29.7 kB / 445.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.015e-05/0.1104, allocations: 92.2 kB / 445.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.1104, allocations: 0 / 445.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.1104, allocations: 21.7 kB / 445.4 MB, free: 2.492 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.638e-05/0.1105, allocations: 310.8 kB / 445.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.43e-05/0.1105, allocations: 15.98 kB / 445.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.216e-05/0.1106, allocations: 21.72 kB / 445.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.939e-05/0.1106, allocations: 40.75 kB / 445.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1107, allocations: 0 / 445.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001047/0.1108, allocations: 65.58 kB / 445.8 MB, free: 2.023 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.1108, allocations: 5.25 kB / 445.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1108, allocations: 0 / 445.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1108, allocations: 4.141 kB / 445.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.152e-05/0.1109, allocations: 3.984 kB / 445.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1109, allocations: 0 / 445.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.337e-05/0.111, allocations: 8 kB / 445.8 MB, free: 2.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.111, allocations: 11.92 kB / 445.8 MB, free: 1.992 MB / 318.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 6.349e-05/0.1111, allocations: 121.7 kB / 446 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.418e-05/0.1111, allocations: 0 / 446 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.34e-05/0.1111, allocations: 11.53 kB / 446 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.1111, allocations: 0 / 446 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.1111, allocations: 0 / 446 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1111, allocations: 3.938 kB / 446 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.1113, allocations: 165.6 kB / 446.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1113, allocations: 4 kB / 446.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.1113, allocations: 8 kB / 446.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1113, allocations: 0 / 446.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.1113, allocations: 7.984 kB / 446.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1113, allocations: 0 / 446.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1113, allocations: 0 / 446.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.1115, allocations: 147.4 kB / 446.3 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.198e-05/0.1115, allocations: 77.11 kB / 446.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.1115, allocations: 16.02 kB / 446.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.047e-05/0.1116, allocations: 4 kB / 446.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.717e-05/0.1117, allocations: 11.98 kB / 446.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1117, allocations: 0 / 446.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.168e-05/0.1117, allocations: 95.56 kB / 446.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1117, allocations: 3.938 kB / 446.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002184/0.1119, allocations: 4 kB / 446.5 MB, free: 1.23 MB / 318.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 7.33e-05/0.112, allocations: 99.12 kB / 446.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001362/0.1122, allocations: 27.98 kB / 446.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1122, allocations: 0 / 446.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.246e-05/0.1122, allocations: 15.98 kB / 446.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.1124, allocations: 7.938 kB / 446.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.1127, allocations: 130.6 kB / 446.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.1128, allocations: 0.6807 MB / 447.5 MB, free: 216 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.692e-05/0.1128, allocations: 0 / 447.5 MB, free: 216 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/0.1129, allocations: 15.42 kB / 447.5 MB, free: 200 kB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1129, allocations: 0 / 447.5 MB, free: 200 kB / 318.1 MB Notification: Performance of Templates: time 0.002515/0.1154, allocations: 0.5875 MB / 448.1 MB, free: 15.61 MB / 334.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 -s gbode -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