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.0008349/0.0008347, allocations: 179 kB / 18.09 MB, free: 3.75 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.153/1.153, allocations: 223.3 MB / 242.1 MB, free: 11.69 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.0007768/0.0007768, allocations: 98.25 kB / 293.3 MB, free: 10.77 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.2617/0.2617, allocations: 44.16 MB / 388.5 MB, free: 38.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003181, allocations: 16 kB / 461.1 MB, free: 1.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2417, allocations: 61.88 MB / 0.5107 GB, free: 37.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08969/0.3314, allocations: 86.21 MB / 0.5949 GB, free: 8.871 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001715/0.3316, allocations: 59.97 kB / 0.595 GB, free: 8.816 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002398/0.3341, allocations: 0.9864 MB / 0.5959 GB, free: 7.832 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3341, allocations: 0 / 0.5959 GB, free: 7.832 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.3341, allocations: 0 / 0.5959 GB, free: 7.832 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.0002849/0.3344, allocations: 351.4 kB / 0.5963 GB, free: 7.438 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.3344, allocations: 11.97 kB / 0.5963 GB, free: 7.426 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.3344, allocations: 8.844 kB / 0.5963 GB, free: 7.418 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.893e-05/0.3345, allocations: 172.3 kB / 0.5964 GB, free: 7.211 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.3346, allocations: 384 / 0.5964 GB, free: 7.211 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.697e-06/0.3346, allocations: 4.312 kB / 0.5965 GB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.3347, allocations: 63.89 kB / 0.5965 GB, free: 7.133 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.3347, allocations: 192 / 0.5965 GB, free: 7.133 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.3347, allocations: 7.938 kB / 0.5965 GB, free: 7.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.3347, allocations: 8 kB / 0.5965 GB, free: 7.117 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.853e-05/0.3348, allocations: 19.98 kB / 0.5965 GB, free: 7.098 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003321/0.3352, allocations: 268.7 kB / 0.5968 GB, free: 6.789 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.712e-05/0.3353, allocations: 38.45 kB / 0.5968 GB, free: 6.742 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.3353, allocations: 20.91 kB / 0.5969 GB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.006e-05/0.3353, allocations: 0 / 0.5969 GB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.3354, allocations: 34.56 kB / 0.5969 GB, free: 6.676 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 7.72e-07/0.3354, allocations: 0 / 0.5969 GB, free: 6.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002045/0.3356, allocations: 69.67 kB / 0.597 GB, free: 6.602 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.3356, allocations: 85.05 kB / 0.597 GB, free: 6.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.025e-05/0.3357, allocations: 105.8 kB / 0.5971 GB, free: 6.387 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.3357, allocations: 25.7 kB / 0.5972 GB, free: 6.355 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.906e-05/0.3357, allocations: 88.14 kB / 0.5973 GB, free: 6.266 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.15e-05/0.3358, allocations: 3.906 kB / 0.5973 GB, free: 6.262 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.3358, allocations: 128 / 0.5973 GB, free: 6.262 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.825e-05/0.3359, allocations: 322.8 kB / 0.5976 GB, free: 5.938 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.392e-05/0.3359, allocations: 16 kB / 0.5976 GB, free: 5.922 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.574e-05/0.336, allocations: 25.7 kB / 0.5976 GB, free: 5.891 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.217e-05/0.336, allocations: 28.84 kB / 0.5976 GB, free: 5.859 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.336, allocations: 4.031 kB / 0.5976 GB, free: 5.855 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001209/0.3362, allocations: 69.55 kB / 0.5977 GB, free: 5.781 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.3362, allocations: 4 kB / 0.5977 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.3362, allocations: 0 / 0.5977 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.335e-06/0.3362, allocations: 0 / 0.5977 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.77e-05/0.3363, allocations: 4 kB / 0.5977 GB, free: 5.773 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.3363, allocations: 0 / 0.5977 GB, free: 5.773 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.46e-05/0.3363, allocations: 15.98 kB / 0.5977 GB, free: 5.758 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.3364, allocations: 4 kB / 0.5977 GB, free: 5.754 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 6.004e-05/0.3364, allocations: 113.8 kB / 0.5978 GB, free: 5.633 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.3365, allocations: 8.047 kB / 0.5978 GB, free: 5.625 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.766e-05/0.3365, allocations: 15.5 kB / 0.5979 GB, free: 5.609 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.3365, allocations: 0 / 0.5979 GB, free: 5.609 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3365, allocations: 3.938 kB / 0.5979 GB, free: 5.605 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3365, allocations: 4 kB / 0.5979 GB, free: 5.602 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.3366, allocations: 169.5 kB / 0.598 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3367, allocations: 0 / 0.598 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.649e-05/0.3367, allocations: 4 kB / 0.598 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3367, allocations: 0 / 0.598 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.3367, allocations: 0 / 0.598 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3367, allocations: 4 kB / 0.598 GB, free: 5.379 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.3367, allocations: 0 / 0.598 GB, free: 5.379 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.3369, allocations: 163.4 kB / 0.5982 GB, free: 5.203 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.914e-05/0.3369, allocations: 81.02 kB / 0.5983 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.3369, allocations: 0 / 0.5983 GB, free: 5.105 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-05/0.337, allocations: 15.98 kB / 0.5983 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.3371, allocations: 3.984 kB / 0.5983 GB, free: 5.086 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.3371, allocations: 4 kB / 0.5983 GB, free: 5.082 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.609e-05/0.3371, allocations: 91.3 kB / 0.5984 GB, free: 4.992 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3371, allocations: 0 / 0.5984 GB, free: 4.992 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001975/0.3373, allocations: 8 kB / 0.5984 GB, free: 4.984 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 7.096e-05/0.3374, allocations: 91.78 kB / 0.5985 GB, free: 4.883 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.3375, allocations: 31.98 kB / 0.5985 GB, free: 4.852 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3375, allocations: 0 / 0.5985 GB, free: 4.852 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.582e-05/0.3376, allocations: 19.92 kB / 0.5985 GB, free: 4.832 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.3378, allocations: 11.94 kB / 0.5985 GB, free: 4.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000234/0.338, allocations: 128.6 kB / 0.5987 GB, free: 4.668 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.3382, allocations: 0.6809 MB / 0.5993 GB, free: 3.961 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.798e-05/0.3382, allocations: 4.062 kB / 0.5993 GB, free: 3.957 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.51e-05/0.3383, allocations: 15.42 kB / 0.5993 GB, free: 3.941 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3383, allocations: 0 / 0.5993 GB, free: 3.941 MB / 410.7 MB Notification: Performance of Templates: time 0.001922/0.3402, allocations: 483 kB / 0.5998 GB, free: 3.473 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/jenkins1/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