Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008807/0.0008807, allocations: 175 kB / 17.41 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 225.7 MB / 243.9 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009833/0.0009834, allocations: 92.22 kB / 295 MB, free: 9.477 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3312/0.3312, allocations: 44.32 MB / 390.5 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002939, allocations: 8 kB / 463.1 MB, free: 224 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3194, allocations: 61.91 MB / 0.5127 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001183/0.3206, allocations: 1.158 MB / 0.5139 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000449/0.3211, allocations: 386.2 kB / 0.5142 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.652e-05/0.3211, allocations: 0 / 0.5142 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.471e-05/0.3211, allocations: 4.719 kB / 0.5142 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.715e-05/0.3212, allocations: 3.938 kB / 0.5142 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001468/0.3213, allocations: 25.84 kB / 0.5143 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.468e-05/0.3214, allocations: 27.58 kB / 0.5143 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.389e-05/0.3215, allocations: 12.14 kB / 0.5143 GB, free: 36.72 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.46e-05/0.3216, allocations: 14.12 kB / 0.5143 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.563e-05/0.3216, allocations: 20.36 kB / 0.5143 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.3217, allocations: 0 / 0.5143 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.998e-06/0.3217, allocations: 3.812 kB / 0.5143 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.527e-05/0.3217, allocations: 4 kB / 0.5143 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.3217, allocations: 36.56 kB / 0.5144 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.173e-05/0.3218, allocations: 25.25 kB / 0.5144 GB, free: 36.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3218, allocations: 0 / 0.5144 GB, free: 36.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3218, allocations: 4 kB / 0.5144 GB, free: 36.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.956e-06/0.3218, allocations: 0 / 0.5144 GB, free: 36.66 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.0003363/0.3222, allocations: 348.8 kB / 0.5147 GB, free: 36.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.3222, allocations: 8.75 kB / 0.5148 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.778e-05/0.3222, allocations: 3.906 kB / 0.5148 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.976e-05/0.3223, allocations: 175.5 kB / 0.5149 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.3223, allocations: 3.312 kB / 0.5149 GB, free: 36.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.408e-06/0.3223, allocations: 8.375 kB / 0.5149 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.3225, allocations: 62.2 kB / 0.515 GB, free: 36.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.3225, allocations: 3.938 kB / 0.515 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.3225, allocations: 0 / 0.515 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.3225, allocations: 3.031 kB / 0.515 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.099e-05/0.3226, allocations: 22.16 kB / 0.515 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002855/0.3229, allocations: 272.3 kB / 0.5153 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.259e-05/0.323, allocations: 30.48 kB / 0.5153 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.226e-05/0.323, allocations: 20.95 kB / 0.5153 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.323, allocations: 3.938 kB / 0.5153 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.308e-05/0.3231, allocations: 37.56 kB / 0.5154 GB, free: 35.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3231, allocations: 0 / 0.5154 GB, free: 35.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002049/0.3233, allocations: 66.31 kB / 0.5154 GB, free: 35.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.3233, allocations: 84.56 kB / 0.5155 GB, free: 35.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.245e-05/0.3234, allocations: 105.7 kB / 0.5156 GB, free: 35.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.3234, allocations: 32.61 kB / 0.5156 GB, free: 35.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/0.3234, allocations: 84.05 kB / 0.5157 GB, free: 35.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.328e-05/0.3234, allocations: 6.906 kB / 0.5157 GB, free: 35.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-06/0.3234, allocations: 0 / 0.5157 GB, free: 35.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.216e-05/0.3235, allocations: 314.2 kB / 0.516 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.464e-05/0.3235, allocations: 12.78 kB / 0.516 GB, free: 34.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.37e-05/0.3236, allocations: 32.62 kB / 0.5161 GB, free: 34.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.933e-05/0.3237, allocations: 34.3 kB / 0.5161 GB, free: 34.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.3237, allocations: 0 / 0.5161 GB, free: 34.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001076/0.3238, allocations: 68.45 kB / 0.5162 GB, free: 34.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.3238, allocations: 10.11 kB / 0.5162 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.3238, allocations: 2.938 kB / 0.5162 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.3238, allocations: 0 / 0.5162 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.06e-05/0.3239, allocations: 2.938 kB / 0.5162 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.3239, allocations: 0 / 0.5162 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.617e-05/0.324, allocations: 16.09 kB / 0.5162 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-06/0.324, allocations: 3 kB / 0.5162 GB, free: 34.88 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 5.033e-05/0.324, allocations: 121.3 kB / 0.5163 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.327e-05/0.3241, allocations: 3.188 kB / 0.5163 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.37e-05/0.3241, allocations: 14.06 kB / 0.5163 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-06/0.3241, allocations: 0 / 0.5163 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3241, allocations: 0 / 0.5163 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3241, allocations: 0 / 0.5163 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.3242, allocations: 165.9 kB / 0.5165 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3242, allocations: 0 / 0.5165 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.964e-05/0.3243, allocations: 9.078 kB / 0.5165 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3243, allocations: 0 / 0.5165 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.3243, allocations: 11.94 kB / 0.5165 GB, free: 34.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3243, allocations: 0 / 0.5165 GB, free: 34.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3243, allocations: 4 kB / 0.5165 GB, free: 34.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.3244, allocations: 155.3 kB / 0.5167 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.738e-05/0.3245, allocations: 83.36 kB / 0.5167 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.3245, allocations: 0 / 0.5167 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.971e-05/0.3246, allocations: 15.19 kB / 0.5168 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.3246, allocations: 10.11 kB / 0.5168 GB, free: 34.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.658e-06/0.3246, allocations: 2.562 kB / 0.5168 GB, free: 34.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.533e-05/0.3247, allocations: 92.69 kB / 0.5169 GB, free: 34.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3247, allocations: 0 / 0.5169 GB, free: 34.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001849/0.3249, allocations: 9.25 kB / 0.5169 GB, free: 34.2 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 6.595e-05/0.3249, allocations: 100.2 kB / 0.517 GB, free: 34.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001279/0.3251, allocations: 32.8 kB / 0.517 GB, free: 34.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.3251, allocations: 0 / 0.517 GB, free: 34.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.519e-05/0.3251, allocations: 18.53 kB / 0.517 GB, free: 34.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.3253, allocations: 3.938 kB / 0.517 GB, free: 34.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002255/0.3255, allocations: 136.3 kB / 0.5171 GB, free: 33.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.138e-05/0.3256, allocations: 0.6779 MB / 0.5178 GB, free: 33.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.853e-05/0.3257, allocations: 3 kB / 0.5178 GB, free: 33.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/0.3257, allocations: 15.38 kB / 0.5178 GB, free: 33.26 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3257, allocations: 0 / 0.5178 GB, free: 33.26 MB / 378.7 MB Notification: Performance of Templates: time 0.001972/0.3277, allocations: 0.5096 MB / 0.5183 GB, free: 33.18 MB / 378.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