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.001385/0.001385, allocations: 105 kB / 16.4 MB, free: 6.48 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.001138/0.001139, allocations: 189.5 kB / 17.34 MB, free: 5.754 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.2 MB, free: 12.23 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.2298/0.2298, allocations: 43.52 MB / 314.1 MB, free: 464 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.00173/0.00173, allocations: 63.91 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1296, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002934/0.1326, allocations: 1.434 MB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008074/0.1335, allocations: 463.8 kB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.573e-05/0.1335, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.745e-05/0.1336, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.099e-05/0.1337, allocations: 11.86 kB / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.1339, allocations: 19.92 kB / 0.4893 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.158e-05/0.134, allocations: 27.92 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.1341, allocations: 15.94 kB / 0.4893 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.1342, allocations: 27.84 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.077e-05/0.1343, allocations: 11.98 kB / 0.4893 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.1343, allocations: 7.938 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.434e-05/0.1344, allocations: 4 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.1344, allocations: 3.984 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.427e-05/0.1344, allocations: 11.94 kB / 0.4894 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.542e-05/0.1345, allocations: 31.89 kB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1346, allocations: 0 / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1346, allocations: 0 / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.1346, allocations: 0 / 0.4894 GB, free: 10.23 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.0004723/0.1351, allocations: 362.7 kB / 0.4897 GB, free: 9.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1351, allocations: 15.89 kB / 0.4898 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.241e-05/0.1352, allocations: 34.75 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.035e-05/0.1352, allocations: 4.938 kB / 0.4898 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.1353, allocations: 164.3 kB / 0.4899 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.1353, allocations: 384 / 0.4899 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.1354, allocations: 4.375 kB / 0.49 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.1356, allocations: 75.38 kB / 0.49 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1356, allocations: 0 / 0.49 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.1356, allocations: 7.938 kB / 0.49 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1356, allocations: 0 / 0.49 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.1358, allocations: 19.98 kB / 0.4901 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004118/0.1362, allocations: 260.9 kB / 0.4903 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.134e-05/0.1363, allocations: 38.5 kB / 0.4903 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.084e-05/0.1363, allocations: 16.92 kB / 0.4904 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.1364, allocations: 0 / 0.4904 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.1364, allocations: 30.56 kB / 0.4904 GB, free: 9.043 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 8.41e-07/0.1364, allocations: 0 / 0.4904 GB, free: 9.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002674/0.1367, allocations: 65.67 kB / 0.4904 GB, free: 8.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.1368, allocations: 89.08 kB / 0.4905 GB, free: 8.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.338e-05/0.1369, allocations: 105.8 kB / 0.4906 GB, free: 8.754 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1369, allocations: 29.7 kB / 0.4907 GB, free: 8.719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.1369, allocations: 88.12 kB / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.137, allocations: 0 / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.045e-05/0.137, allocations: 17.72 kB / 0.4908 GB, free: 8.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1371, allocations: 314.8 kB / 0.4911 GB, free: 8.289 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.152e-05/0.1372, allocations: 19.98 kB / 0.4911 GB, free: 8.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.207e-05/0.1373, allocations: 25.7 kB / 0.4911 GB, free: 8.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.804e-05/0.1373, allocations: 24.84 kB / 0.4911 GB, free: 8.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1374, allocations: 0 / 0.4911 GB, free: 8.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001287/0.1375, allocations: 61.53 kB / 0.4912 GB, free: 8.145 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1375, allocations: 4 kB / 0.4912 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1375, allocations: 0 / 0.4912 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/0.1376, allocations: 8.016 kB / 0.4912 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.148e-05/0.1376, allocations: 4 kB / 0.4912 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1376, allocations: 0 / 0.4912 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.832e-05/0.1377, allocations: 15.98 kB / 0.4912 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.1377, allocations: 0 / 0.4912 GB, free: 8.113 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 8.318e-05/0.1378, allocations: 117.7 kB / 0.4913 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.567e-05/0.1378, allocations: 0 / 0.4913 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.751e-05/0.1379, allocations: 11.53 kB / 0.4913 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1379, allocations: 0 / 0.4913 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1379, allocations: 4 kB / 0.4913 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1379, allocations: 0 / 0.4913 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.1381, allocations: 165.5 kB / 0.4915 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1381, allocations: 11.94 kB / 0.4915 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.842e-05/0.1382, allocations: 3.984 kB / 0.4915 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1382, allocations: 0 / 0.4915 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.1382, allocations: 4 kB / 0.4915 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1382, allocations: 3.938 kB / 0.4915 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1382, allocations: 0 / 0.4915 GB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.1384, allocations: 163.5 kB / 0.4917 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.1384, allocations: 81.09 kB / 0.4918 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.1384, allocations: 4 kB / 0.4918 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.233e-05/0.1385, allocations: 7.984 kB / 0.4918 GB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.1386, allocations: 4 kB / 0.4918 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-06/0.1386, allocations: 7.984 kB / 0.4918 GB, free: 7.438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.321e-05/0.1387, allocations: 87.27 kB / 0.4919 GB, free: 7.352 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1387, allocations: 4.031 kB / 0.4919 GB, free: 7.348 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1389, allocations: 8 kB / 0.4919 GB, free: 7.34 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.0005544/0.1394, allocations: 0.681 MB / 0.4925 GB, free: 6.633 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001598/0.1396, allocations: 32.02 kB / 0.4926 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1396, allocations: 0 / 0.4926 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.072e-05/0.1397, allocations: 15.98 kB / 0.4926 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.1399, allocations: 6.453 kB / 0.4926 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004389/0.1403, allocations: 164.2 kB / 0.4927 GB, free: 6.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.1406, allocations: 0.6768 MB / 0.4934 GB, free: 5.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.962e-05/0.1407, allocations: 4.062 kB / 0.4934 GB, free: 5.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.132e-05/0.1407, allocations: 15.44 kB / 0.4934 GB, free: 5.664 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1407, allocations: 0 / 0.4934 GB, free: 5.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.1594, allocations: 1.517 MB / 0.4949 GB, free: 4.133 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/7.912, allocations: 4.062 kB / 0.4949 GB, free: 4.129 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