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.001087/0.001087, allocations: 109.5 kB / 17.86 MB, free: 5.629 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.001044/0.001044, allocations: 190 kB / 18.77 MB, free: 4.715 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.352/1.352, allocations: 222.9 MB / 242.5 MB, free: 15.48 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.2095/0.2095, allocations: 44.17 MB / 336.8 MB, free: 3.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 68.95 kB / 408.4 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1197, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003036/0.1228, allocations: 1.49 MB / 470.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007152/0.1235, allocations: 415.1 kB / 471.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.731e-05/0.1236, allocations: 0 / 471.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.873e-05/0.1236, allocations: 0 / 471.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.491e-05/0.1237, allocations: 7.938 kB / 471.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.1239, allocations: 19.97 kB / 471.1 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.367e-05/0.124, allocations: 35.86 kB / 471.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.1241, allocations: 4 kB / 471.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.1242, allocations: 15.92 kB / 471.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.965e-05/0.1243, allocations: 27.91 kB / 471.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.1243, allocations: 0 / 471.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.406e-05/0.1243, allocations: 7.938 kB / 471.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/0.1244, allocations: 3.984 kB / 471.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.393e-05/0.1244, allocations: 11.94 kB / 471.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.618e-05/0.1245, allocations: 15.97 kB / 471.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1245, allocations: 0 / 471.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1245, allocations: 0 / 471.2 MB, free: 12.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.1245, allocations: 0 / 471.2 MB, free: 12.79 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.0005409/0.1251, allocations: 351.7 kB / 471.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.1251, allocations: 8.031 kB / 471.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.1252, allocations: 12.84 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.1253, allocations: 176.2 kB / 471.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.1253, allocations: 4.312 kB / 471.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.1254, allocations: 8.375 kB / 471.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.1255, allocations: 59.7 kB / 471.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1255, allocations: 0 / 471.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.1256, allocations: 8 kB / 471.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1256, allocations: 0 / 471.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.003e-05/0.1257, allocations: 19.98 kB / 471.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004489/0.1261, allocations: 264.8 kB / 472.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.904e-05/0.1262, allocations: 30.56 kB / 472.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.943e-05/0.1263, allocations: 20.91 kB / 472.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.1263, allocations: 0 / 472.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.1263, allocations: 34.56 kB / 472.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.1264, allocations: 0 / 472.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002477/0.1266, allocations: 65.61 kB / 472.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.1267, allocations: 77.11 kB / 472.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.551e-05/0.1268, allocations: 114 kB / 472.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.1268, allocations: 29.7 kB / 472.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.6e-05/0.1269, allocations: 84.14 kB / 472.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.1269, allocations: 3.906 kB / 472.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/0.1269, allocations: 13.72 kB / 472.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1271, allocations: 318.8 kB / 472.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.226e-05/0.1271, allocations: 12 kB / 472.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.715e-05/0.1272, allocations: 29.7 kB / 472.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.241e-05/0.1273, allocations: 28.88 kB / 473 MB, free: 10.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1273, allocations: 0 / 473 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001361/0.1274, allocations: 65.59 kB / 473 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1275, allocations: 4 kB / 473 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1275, allocations: 0 / 473 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.1275, allocations: 4 kB / 473 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.563e-05/0.1276, allocations: 0 / 473 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.1276, allocations: 0 / 473 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.974e-05/0.1277, allocations: 19.95 kB / 473 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.1277, allocations: 0 / 473 MB, free: 10.72 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 8.752e-05/0.1278, allocations: 117.8 kB / 473.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.1278, allocations: 3.906 kB / 473.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.1279, allocations: 19.47 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1279, allocations: 3.938 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1279, allocations: 0 / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1279, allocations: 0 / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.1281, allocations: 165.6 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.1281, allocations: 4 kB / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.1281, allocations: 0 / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1281, allocations: 0 / 473.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.1281, allocations: 4 kB / 473.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-06/0.1282, allocations: 4 kB / 473.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1282, allocations: 3.938 kB / 473.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.1284, allocations: 155.5 kB / 473.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.1284, allocations: 81.02 kB / 473.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.1284, allocations: 4 kB / 473.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.397e-05/0.1285, allocations: 7.984 kB / 473.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.434e-05/0.1286, allocations: 7.984 kB / 473.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.1286, allocations: 0 / 473.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.157e-05/0.1287, allocations: 95.56 kB / 473.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1287, allocations: 0 / 473.7 MB, free: 9.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.1289, allocations: 4 kB / 473.7 MB, free: 9.961 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.0001149/0.129, allocations: 95.81 kB / 473.8 MB, free: 9.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001467/0.1292, allocations: 31.92 kB / 473.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1292, allocations: 0 / 473.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.259e-05/0.1292, allocations: 11.98 kB / 473.8 MB, free: 9.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002199/0.1295, allocations: 11.94 kB / 473.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003571/0.1298, allocations: 158.1 kB / 474 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.1301, allocations: 0.6809 MB / 474.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.529e-05/0.1302, allocations: 7.438 kB / 474.7 MB, free: 8.898 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1302, allocations: 0 / 474.7 MB, free: 8.898 MB / 350.1 MB Notification: Performance of Templates: time 0.002444/0.1326, allocations: 0.6312 MB / 475.3 MB, free: 8.266 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