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: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 105.7 kB / 16.4 MB, free: 6.5 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.001359/0.001359, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.51/1.51, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.238/0.238, allocations: 43.52 MB / 314.1 MB, free: 452 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.002242/0.002242, allocations: 62.03 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.1291, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002853/0.132, allocations: 1.438 MB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008951/0.133, allocations: 463.5 kB / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.364e-05/0.133, allocations: 0 / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.255e-05/0.1331, allocations: 0 / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.813e-05/0.1331, allocations: 11.91 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.1333, allocations: 23.92 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.801e-05/0.1334, allocations: 31.86 kB / 0.4893 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.989e-05/0.1335, allocations: 15.94 kB / 0.4893 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.961e-05/0.1336, allocations: 19.97 kB / 0.4893 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.99e-05/0.1336, allocations: 15.92 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.1336, allocations: 4 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.568e-06/0.1336, allocations: 7.938 kB / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.1337, allocations: 7.938 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.481e-05/0.1337, allocations: 15.92 kB / 0.4894 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.967e-05/0.1338, allocations: 31.89 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1338, allocations: 0 / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1338, allocations: 0 / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1338, allocations: 0 / 0.4894 GB, free: 10.21 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.0004439/0.1343, allocations: 351.3 kB / 0.4897 GB, free: 9.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1343, allocations: 15.89 kB / 0.4898 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.547e-05/0.1344, allocations: 30.75 kB / 0.4898 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.1344, allocations: 8.922 kB / 0.4898 GB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.1345, allocations: 164.3 kB / 0.49 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.1345, allocations: 4.375 kB / 0.49 GB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.1345, allocations: 4.375 kB / 0.49 GB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.1347, allocations: 67.45 kB / 0.49 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.1347, allocations: 0 / 0.49 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.1347, allocations: 4 kB / 0.49 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1348, allocations: 0 / 0.49 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.008e-05/0.1348, allocations: 19.98 kB / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003636/0.1352, allocations: 264.8 kB / 0.4903 GB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.59e-05/0.1353, allocations: 30.58 kB / 0.4903 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.26e-05/0.1354, allocations: 20.84 kB / 0.4903 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.1354, allocations: 7.938 kB / 0.4904 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.1354, allocations: 30.56 kB / 0.4904 GB, free: 9.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1354, allocations: 0 / 0.4904 GB, free: 9.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002363/0.1357, allocations: 69.67 kB / 0.4905 GB, free: 8.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.1357, allocations: 77.11 kB / 0.4905 GB, free: 8.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.986e-05/0.1358, allocations: 113.8 kB / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1359, allocations: 29.7 kB / 0.4907 GB, free: 8.703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.1359, allocations: 84.14 kB / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.1359, allocations: 0 / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.563e-05/0.136, allocations: 17.7 kB / 0.4908 GB, free: 8.594 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1361, allocations: 318.8 kB / 0.4911 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.526e-05/0.1361, allocations: 23.95 kB / 0.4911 GB, free: 8.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.897e-05/0.1362, allocations: 21.72 kB / 0.4911 GB, free: 8.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.32e-05/0.1363, allocations: 24.84 kB / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1363, allocations: 0 / 0.4911 GB, free: 8.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000125/0.1364, allocations: 61.58 kB / 0.4912 GB, free: 8.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.1364, allocations: 4 kB / 0.4912 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1364, allocations: 0 / 0.4912 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1365, allocations: 8.031 kB / 0.4912 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.094e-05/0.1365, allocations: 3.984 kB / 0.4912 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1365, allocations: 3.938 kB / 0.4912 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.562e-05/0.1366, allocations: 8 kB / 0.4912 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.1366, allocations: 0 / 0.4912 GB, free: 8.102 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 9.039e-05/0.1367, allocations: 125.8 kB / 0.4913 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.1367, allocations: 3.984 kB / 0.4913 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.1368, allocations: 15.53 kB / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1368, allocations: 4 kB / 0.4914 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1368, allocations: 0 / 0.4914 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1368, allocations: 0 / 0.4914 GB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.137, allocations: 165.5 kB / 0.4915 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.137, allocations: 4 kB / 0.4915 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.969e-05/0.137, allocations: 0 / 0.4915 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.137, allocations: 0 / 0.4915 GB, free: 7.727 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.1371, allocations: 11.92 kB / 0.4915 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1371, allocations: 0 / 0.4915 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1371, allocations: 0 / 0.4915 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001643/0.1372, allocations: 159.3 kB / 0.4917 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.415e-05/0.1373, allocations: 77.11 kB / 0.4918 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.1373, allocations: 7.984 kB / 0.4918 GB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.917e-05/0.1374, allocations: 4 kB / 0.4918 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.1374, allocations: 7.984 kB / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.1374, allocations: 3.938 kB / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.482e-05/0.1375, allocations: 91.27 kB / 0.4919 GB, free: 7.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1375, allocations: 4.031 kB / 0.4919 GB, free: 7.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.1377, allocations: 4 kB / 0.4919 GB, free: 7.328 MB / 382.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.0004279/0.1382, allocations: 0.6811 MB / 0.4925 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001529/0.1383, allocations: 35.95 kB / 0.4926 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1383, allocations: 0 / 0.4926 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.619e-05/0.1384, allocations: 11.98 kB / 0.4926 GB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.1386, allocations: 4 kB / 0.4926 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004199/0.139, allocations: 160.2 kB / 0.4927 GB, free: 6.375 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.1393, allocations: 0.6768 MB / 0.4934 GB, free: 5.672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.104e-05/0.1393, allocations: 4.062 kB / 0.4934 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.1393, allocations: 19.42 kB / 0.4934 GB, free: 5.648 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1394, allocations: 0 / 0.4934 GB, free: 5.648 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01719/0.1566, allocations: 1.525 MB / 0.4949 GB, free: 4.113 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.411/7.567, allocations: 7.859 kB / 0.4949 GB, free: 4.109 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > 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) "" Variables in the reference:time,hysteresis.y Variables in the result:Signal.amplitude,Signal.freqHz,Signal.offset,Signal.phase,Signal.startTime,Signal.y,hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,time