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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 175.7 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.25/1.25, allocations: 223.2 MB / 241 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008163/0.0008164, allocations: 93.78 kB / 292.2 MB, free: 10.9 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3156/0.3156, allocations: 44.22 MB / 387.5 MB, free: 38.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003524, allocations: 12 kB / 459.9 MB, free: 1.512 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3383, allocations: 61.9 MB / 0.5096 GB, free: 38.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1046/0.443, allocations: 86.21 MB / 0.5937 GB, free: 8.914 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001639/0.4432, allocations: 67.97 kB / 0.5938 GB, free: 8.848 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00249/0.4457, allocations: 0.9823 MB / 0.5948 GB, free: 7.871 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4457, allocations: 4 kB / 0.5948 GB, free: 7.867 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.4457, allocations: 4 kB / 0.5948 GB, free: 7.863 MB / 410.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.0003421/0.4461, allocations: 347.2 kB / 0.5951 GB, free: 7.477 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.4461, allocations: 8.031 kB / 0.5951 GB, free: 7.469 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.4461, allocations: 3.906 kB / 0.5951 GB, free: 7.465 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.4463, allocations: 163.1 kB / 0.5953 GB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.4463, allocations: 0 / 0.5953 GB, free: 7.266 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.4463, allocations: 11.95 kB / 0.5953 GB, free: 7.254 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.4465, allocations: 63.39 kB / 0.5953 GB, free: 7.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.4465, allocations: 3.938 kB / 0.5953 GB, free: 7.176 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.4465, allocations: 0 / 0.5953 GB, free: 7.176 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.446e-06/0.4465, allocations: 0 / 0.5953 GB, free: 7.176 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.654e-05/0.4466, allocations: 27.92 kB / 0.5954 GB, free: 7.148 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003458/0.4469, allocations: 264.9 kB / 0.5956 GB, free: 6.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.169e-05/0.4471, allocations: 38.55 kB / 0.5957 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.4471, allocations: 0 / 0.5957 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.4471, allocations: 38.56 kB / 0.5957 GB, free: 6.746 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.4471, allocations: 0 / 0.5957 GB, free: 6.746 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002233/0.4473, allocations: 73.58 kB / 0.5958 GB, free: 6.668 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.4474, allocations: 77.11 kB / 0.5958 GB, free: 6.574 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.195e-05/0.4475, allocations: 101 kB / 0.5959 GB, free: 6.469 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.4475, allocations: 29.83 kB / 0.596 GB, free: 6.434 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.4475, allocations: 88.14 kB / 0.5961 GB, free: 6.344 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.4476, allocations: 7.906 kB / 0.5961 GB, free: 6.336 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-06/0.4476, allocations: 0 / 0.5961 GB, free: 6.336 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.436e-05/0.4477, allocations: 310.8 kB / 0.5964 GB, free: 6.023 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.9e-05/0.4477, allocations: 19.98 kB / 0.5964 GB, free: 6.004 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.841e-05/0.4478, allocations: 29.7 kB / 0.5964 GB, free: 5.969 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.632e-05/0.4478, allocations: 11.94 kB / 0.5964 GB, free: 5.957 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4478, allocations: 0 / 0.5964 GB, free: 5.957 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001305/0.448, allocations: 69.62 kB / 0.5965 GB, free: 5.883 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.448, allocations: 4 kB / 0.5965 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.448, allocations: 0 / 0.5965 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.558e-06/0.448, allocations: 0 / 0.5965 GB, free: 5.879 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.471e-05/0.4481, allocations: 12.02 kB / 0.5965 GB, free: 5.867 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.4481, allocations: 0 / 0.5965 GB, free: 5.867 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.704e-05/0.4482, allocations: 16 kB / 0.5965 GB, free: 5.852 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-06/0.4482, allocations: 0 / 0.5965 GB, free: 5.852 MB / 410.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.367e-05/0.4483, allocations: 122.3 kB / 0.5966 GB, free: 5.723 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.4483, allocations: 3.953 kB / 0.5966 GB, free: 5.719 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.304e-05/0.4483, allocations: 3.531 kB / 0.5966 GB, free: 5.715 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.4483, allocations: 8 kB / 0.5966 GB, free: 5.707 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4483, allocations: 0 / 0.5966 GB, free: 5.707 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.4483, allocations: 0 / 0.5966 GB, free: 5.707 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.4485, allocations: 165.6 kB / 0.5968 GB, free: 5.496 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.4485, allocations: 3.938 kB / 0.5968 GB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.024e-05/0.4486, allocations: 7.938 kB / 0.5968 GB, free: 5.484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4486, allocations: 3.953 kB / 0.5968 GB, free: 5.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.4486, allocations: 7.984 kB / 0.5968 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.4486, allocations: 0 / 0.5968 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.4486, allocations: 0 / 0.5968 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000155/0.4488, allocations: 147.5 kB / 0.597 GB, free: 5.312 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.079e-05/0.4488, allocations: 77.11 kB / 0.597 GB, free: 5.219 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.4488, allocations: 15.94 kB / 0.5971 GB, free: 5.203 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.974e-05/0.4489, allocations: 8 kB / 0.5971 GB, free: 5.195 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.765e-05/0.449, allocations: 12.02 kB / 0.5971 GB, free: 5.184 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-06/0.449, allocations: 0 / 0.5971 GB, free: 5.184 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.81e-05/0.449, allocations: 87.27 kB / 0.5972 GB, free: 5.098 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.449, allocations: 0 / 0.5972 GB, free: 5.098 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001913/0.4492, allocations: 8 kB / 0.5972 GB, free: 5.09 MB / 410.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.178e-05/0.4493, allocations: 91.25 kB / 0.5972 GB, free: 4.992 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.4494, allocations: 35.92 kB / 0.5973 GB, free: 4.957 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4495, allocations: 4 kB / 0.5973 GB, free: 4.953 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.466e-05/0.4495, allocations: 11.98 kB / 0.5973 GB, free: 4.941 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.4497, allocations: 6.109 kB / 0.5973 GB, free: 4.938 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002502/0.4499, allocations: 140.5 kB / 0.5974 GB, free: 4.773 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.4502, allocations: 0.6849 MB / 0.5981 GB, free: 4.062 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.764e-05/0.4502, allocations: 4.172 kB / 0.5981 GB, free: 4.059 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.843e-05/0.4502, allocations: 7.438 kB / 0.5981 GB, free: 4.051 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4502, allocations: 3.938 kB / 0.5981 GB, free: 4.047 MB / 410.7 MB Notification: Performance of Templates: time 0.001996/0.4522, allocations: 489 kB / 0.5986 GB, free: 3.574 MB / 410.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches