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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.00166/0.001661, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 242.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2525/0.2525, allocations: 44.19 MB / 337.3 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 67.27 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.137, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002779/0.1398, allocations: 1.445 MB / 471.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008192/0.1407, allocations: 407.1 kB / 471.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.514e-05/0.1407, allocations: 4 kB / 471.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.57e-05/0.1408, allocations: 3.938 kB / 471.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.641e-05/0.1409, allocations: 11.92 kB / 471.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.1411, allocations: 15.97 kB / 471.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.691e-05/0.1412, allocations: 31.86 kB / 471.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.1413, allocations: 8 kB / 471.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.1415, allocations: 19.92 kB / 471.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.584e-05/0.1415, allocations: 19.91 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.1416, allocations: 4 kB / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.394e-05/0.1416, allocations: 0 / 471.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.018e-05/0.1416, allocations: 8 kB / 471.9 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.186e-05/0.1417, allocations: 19.92 kB / 471.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.1418, allocations: 23.91 kB / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1418, allocations: 0 / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1418, allocations: 0 / 471.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.1418, allocations: 0 / 471.9 MB, free: 12.36 MB / 350.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.0004773/0.1423, allocations: 343.7 kB / 472.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1423, allocations: 8.031 kB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.1424, allocations: 12.84 kB / 472.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.1425, allocations: 192.2 kB / 472.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1425, allocations: 384 / 472.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.1425, allocations: 384 / 472.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.1427, allocations: 63.66 kB / 472.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.1427, allocations: 0 / 472.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.1428, allocations: 0 / 472.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1428, allocations: 3.984 kB / 472.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.811e-05/0.1429, allocations: 19.98 kB / 472.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000399/0.1433, allocations: 268.8 kB / 472.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.107e-05/0.1434, allocations: 38.5 kB / 472.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.762e-05/0.1434, allocations: 12.92 kB / 472.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.1434, allocations: 0 / 472.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.1435, allocations: 42.55 kB / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.1435, allocations: 0 / 472.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002373/0.1437, allocations: 57.62 kB / 473 MB, free: 11.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.1438, allocations: 81.09 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.446e-05/0.1439, allocations: 113.8 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.1439, allocations: 25.7 kB / 473.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.144, allocations: 84.14 kB / 473.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.144, allocations: 12.03 kB / 473.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.144, allocations: 17.72 kB / 473.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1441, allocations: 314.8 kB / 473.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.788e-05/0.1442, allocations: 12 kB / 473.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.907e-05/0.1443, allocations: 25.7 kB / 473.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.924e-05/0.1443, allocations: 28.78 kB / 473.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1444, allocations: 4.031 kB / 473.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001183/0.1445, allocations: 57.61 kB / 473.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1445, allocations: 8 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1445, allocations: 0 / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1445, allocations: 0 / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.951e-05/0.1446, allocations: 4 kB / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1446, allocations: 320 / 473.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.825e-05/0.1447, allocations: 7.984 kB / 473.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.1447, allocations: 4 kB / 473.7 MB, free: 10.29 MB / 350.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.837e-05/0.1448, allocations: 117.8 kB / 473.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.1448, allocations: 7.906 kB / 473.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.909e-05/0.1448, allocations: 15.47 kB / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1448, allocations: 0 / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.1449, allocations: 144 / 473.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1449, allocations: 7.922 kB / 473.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.145, allocations: 165.6 kB / 474.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.145, allocations: 0 / 474.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.834e-05/0.1451, allocations: 4 kB / 474.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1451, allocations: 4 kB / 474.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.1451, allocations: 0 / 474.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1451, allocations: 7.938 kB / 474.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1451, allocations: 0 / 474.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.1453, allocations: 151.5 kB / 474.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.413e-05/0.1453, allocations: 85.02 kB / 474.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.1454, allocations: 0 / 474.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.1455, allocations: 12.02 kB / 474.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.654e-05/0.1455, allocations: 11.92 kB / 474.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.1455, allocations: 0 / 474.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.025e-05/0.1456, allocations: 95.25 kB / 474.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1456, allocations: 0 / 474.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002097/0.1458, allocations: 4 kB / 474.4 MB, free: 9.52 MB / 350.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 0.0001008/0.1459, allocations: 99.25 kB / 474.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.1461, allocations: 31.92 kB / 474.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1461, allocations: 0 / 474.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.655e-05/0.1461, allocations: 15.98 kB / 474.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.1463, allocations: 6.906 kB / 474.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003267/0.1467, allocations: 156.2 kB / 474.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.147, allocations: 0.6846 MB / 475.4 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.147, allocations: 7.438 kB / 475.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.147, allocations: 0 / 475.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of Templates: time 0.002001/0.149, allocations: 0.6397 MB / 476.1 MB, free: 7.82 MB / 350.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches