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.001293/0.001293, allocations: 105.9 kB / 17.08 MB, free: 5.82 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.00132/0.00132, allocations: 195.3 kB / 18.02 MB, free: 4.965 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.273/1.273, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.1926/0.1926, allocations: 43.53 MB / 314.8 MB, free: 472 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.001494/0.001494, allocations: 69.47 kB / 442.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09187, allocations: 57.79 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002362/0.09426, allocations: 1.436 MB / 0.4899 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006915/0.09498, allocations: 453.2 kB / 0.4904 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.115e-05/0.09503, allocations: 4 kB / 0.4904 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.602e-05/0.09506, allocations: 3.938 kB / 0.4904 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.877e-05/0.09511, allocations: 7.938 kB / 0.4904 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001532/0.09528, allocations: 23.91 kB / 0.4904 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.475e-05/0.09536, allocations: 39.84 kB / 0.4904 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.1e-05/0.09545, allocations: 4 kB / 0.4904 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.013e-05/0.09554, allocations: 11.98 kB / 0.4905 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.859e-05/0.09561, allocations: 23.91 kB / 0.4905 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.09563, allocations: 4 kB / 0.4905 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.097e-05/0.09564, allocations: 4 kB / 0.4905 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.09566, allocations: 7.938 kB / 0.4905 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.577e-05/0.09569, allocations: 11.94 kB / 0.4905 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.719e-05/0.09578, allocations: 39.81 kB / 0.4905 GB, free: 9.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.09579, allocations: 0 / 0.4905 GB, free: 9.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.09579, allocations: 0 / 0.4905 GB, free: 9.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.0958, allocations: 7.938 kB / 0.4906 GB, free: 9.742 MB / 382.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.0003937/0.0962, allocations: 354.8 kB / 0.4909 GB, free: 9.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.09624, allocations: 15.89 kB / 0.4909 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.09628, allocations: 4.938 kB / 0.4909 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.09639, allocations: 164.3 kB / 0.4911 GB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.09641, allocations: 4.359 kB / 0.4911 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.09643, allocations: 4.375 kB / 0.4911 GB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.09657, allocations: 63.7 kB / 0.4911 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.09659, allocations: 0 / 0.4911 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.0966, allocations: 4 kB / 0.4911 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.09661, allocations: 4 kB / 0.4911 GB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.498e-05/0.0967, allocations: 27.91 kB / 0.4912 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003381/0.09705, allocations: 256.9 kB / 0.4914 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.91e-05/0.09714, allocations: 30.56 kB / 0.4914 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.318e-05/0.09719, allocations: 16.86 kB / 0.4915 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.0972, allocations: 4 kB / 0.4915 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.09723, allocations: 30.56 kB / 0.4915 GB, free: 8.613 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.703e-06/0.09724, allocations: 0 / 0.4915 GB, free: 8.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002149/0.09746, allocations: 69.61 kB / 0.4916 GB, free: 8.539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.09751, allocations: 77.11 kB / 0.4916 GB, free: 8.445 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.928e-05/0.09759, allocations: 113.7 kB / 0.4917 GB, free: 8.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.09762, allocations: 33.64 kB / 0.4918 GB, free: 8.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.732e-05/0.09766, allocations: 92.25 kB / 0.4919 GB, free: 8.191 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.09768, allocations: 4 kB / 0.4919 GB, free: 8.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.09772, allocations: 13.72 kB / 0.4919 GB, free: 8.168 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.826e-05/0.09782, allocations: 318.8 kB / 0.4922 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.616e-05/0.09788, allocations: 8 kB / 0.4922 GB, free: 7.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.791e-05/0.09794, allocations: 25.7 kB / 0.4922 GB, free: 7.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.502e-05/0.09802, allocations: 32.81 kB / 0.4922 GB, free: 7.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.09803, allocations: 3.938 kB / 0.4923 GB, free: 7.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001191/0.09816, allocations: 65.58 kB / 0.4923 GB, free: 7.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.09818, allocations: 4 kB / 0.4923 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.09819, allocations: 0 / 0.4923 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.0982, allocations: 0 / 0.4923 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.315e-05/0.09827, allocations: 4 kB / 0.4923 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.09829, allocations: 0 / 0.4923 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.973e-05/0.09836, allocations: 11.98 kB / 0.4923 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.09837, allocations: 8 kB / 0.4923 GB, free: 7.672 MB / 382.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 7.788e-05/0.09845, allocations: 121.7 kB / 0.4925 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.09848, allocations: 0 / 0.4925 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.232e-05/0.09851, allocations: 7.531 kB / 0.4925 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.09852, allocations: 3.984 kB / 0.4925 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.09852, allocations: 0 / 0.4925 GB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.173e-05/0.09856, allocations: 81.02 kB / 0.4925 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.09858, allocations: 4 kB / 0.4926 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.812e-05/0.09868, allocations: 19.92 kB / 0.4926 GB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.33e-05/0.09872, allocations: 3.938 kB / 0.4926 GB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001728/0.0989, allocations: 133.1 kB / 0.4927 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001724/0.09908, allocations: 222.8 kB / 0.4929 GB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.951e-05/0.09914, allocations: 23.97 kB / 0.4929 GB, free: 7.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.7e-05/0.09918, allocations: 87.22 kB / 0.493 GB, free: 6.922 MB / 382.1 MB Notification: Performance of Backend: time 2.5e-07/0.09919, allocations: 4 kB / 0.493 GB, free: 6.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003322/0.09953, allocations: 90.33 kB / 0.4931 GB, free: 6.824 MB / 382.1 MB Notification: Performance of SimCode: time 0.0003759/0.09991, allocations: 0.5815 MB / 0.4937 GB, free: 6.195 MB / 382.1 MB Notification: Performance of Templates: time 0.002547/0.1025, allocations: 0.6844 MB / 0.4943 GB, free: 5.512 MB / 382.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 -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