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.001192/0.001192, allocations: 100.3 kB / 16.94 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.00126/0.00126, allocations: 187.3 kB / 17.86 MB, free: 5.172 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.497/1.497, allocations: 205.1 MB / 223.7 MB, free: 12.31 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.2202/0.2202, allocations: 43.51 MB / 314.6 MB, free: 0.5391 MB / 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.001832/0.001832, allocations: 73.3 kB / 383.4 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1227, allocations: 57.79 MB / 441.2 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002706/0.1255, allocations: 1.436 MB / 442.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006858/0.1262, allocations: 456.3 kB / 443.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.584e-05/0.1263, allocations: 0 / 443.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.983e-05/0.1263, allocations: 7.922 kB / 443.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.888e-05/0.1264, allocations: 7.938 kB / 443.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002074/0.1266, allocations: 11.98 kB / 443.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.664e-05/0.1267, allocations: 39.78 kB / 443.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.1268, allocations: 8 kB / 443.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.535e-05/0.1269, allocations: 15.98 kB / 443.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.658e-05/0.127, allocations: 15.92 kB / 443.2 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.127, allocations: 7.938 kB / 443.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.255e-05/0.127, allocations: 4 kB / 443.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.983e-05/0.1271, allocations: 7.922 kB / 443.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.277e-05/0.1271, allocations: 23.92 kB / 443.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.656e-05/0.1272, allocations: 32.12 kB / 443.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1272, allocations: 0 / 443.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1272, allocations: 0 / 443.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1272, allocations: 0 / 443.2 MB, free: 4.844 MB / 318.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.0004412/0.1277, allocations: 343.4 kB / 443.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1277, allocations: 15.89 kB / 443.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.899e-05/0.1278, allocations: 4.938 kB / 443.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.94e-05/0.1279, allocations: 176.2 kB / 443.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.1279, allocations: 4.375 kB / 443.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.1279, allocations: 8.312 kB / 443.8 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.1281, allocations: 59.7 kB / 443.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1281, allocations: 0 / 443.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1281, allocations: 0 / 443.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.768e-06/0.1281, allocations: 0 / 443.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.702e-05/0.1282, allocations: 19.98 kB / 443.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003665/0.1286, allocations: 268.9 kB / 444.1 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.028e-05/0.1287, allocations: 34.5 kB / 444.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.482e-05/0.1287, allocations: 20.91 kB / 444.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.1288, allocations: 0 / 444.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.1288, allocations: 30.56 kB / 444.2 MB, free: 3.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.1288, allocations: 4 kB / 444.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002479/0.1291, allocations: 61.61 kB / 444.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.1291, allocations: 85.11 kB / 444.4 MB, free: 3.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.168e-05/0.1292, allocations: 109.8 kB / 444.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.1292, allocations: 25.7 kB / 444.5 MB, free: 3.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.1292, allocations: 88.14 kB / 444.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/0.1293, allocations: 3.938 kB / 444.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.1293, allocations: 25.83 kB / 444.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.165e-05/0.1294, allocations: 310.8 kB / 444.9 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.541e-05/0.1294, allocations: 12 kB / 444.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.38e-05/0.1295, allocations: 25.7 kB / 444.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.922e-05/0.1295, allocations: 28.78 kB / 445 MB, free: 2.879 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1296, allocations: 0 / 445 MB, free: 2.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001095/0.1297, allocations: 69.69 kB / 445 MB, free: 2.805 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.1297, allocations: 4 kB / 445 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1297, allocations: 0 / 445 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1297, allocations: 3.984 kB / 445 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.168e-05/0.1298, allocations: 8 kB / 445 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.1298, allocations: 3.938 kB / 445.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.498e-05/0.1299, allocations: 15.98 kB / 445.1 MB, free: 2.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.1299, allocations: 0 / 445.1 MB, free: 2.77 MB / 318.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 6.156e-05/0.13, allocations: 126.8 kB / 445.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.13, allocations: 3.984 kB / 445.2 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.457e-05/0.13, allocations: 7.531 kB / 445.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.13, allocations: 4 kB / 445.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.13, allocations: 0 / 445.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.13, allocations: 0 / 445.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.1302, allocations: 161.6 kB / 445.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1302, allocations: 0 / 445.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.608e-05/0.1302, allocations: 4 kB / 445.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1302, allocations: 0 / 445.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.1302, allocations: 0 / 445.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1302, allocations: 4 kB / 445.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1302, allocations: 7.984 kB / 445.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.1304, allocations: 155.3 kB / 445.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.1304, allocations: 77.11 kB / 445.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.1304, allocations: 0 / 445.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.159e-05/0.1305, allocations: 11.98 kB / 445.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.627e-05/0.1306, allocations: 12.02 kB / 445.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.1306, allocations: 0 / 445.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.901e-05/0.1306, allocations: 87.27 kB / 445.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.81e-07/0.1306, allocations: 0 / 445.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002111/0.1308, allocations: 11.94 kB / 445.7 MB, free: 2.016 MB / 318.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 8.63e-05/0.1309, allocations: 99.19 kB / 445.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001529/0.1311, allocations: 27.92 kB / 445.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1311, allocations: 4 kB / 445.9 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.401e-05/0.1311, allocations: 15.98 kB / 445.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002118/0.1314, allocations: 7.938 kB / 445.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000277/0.1316, allocations: 144.3 kB / 446 MB, free: 1.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.1318, allocations: 0.6807 MB / 446.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.1318, allocations: 11.5 kB / 446.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1318, allocations: 0 / 446.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of Templates: time 0.001861/0.1337, allocations: 0.6532 MB / 447.4 MB, free: 320 kB / 318.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