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.001212/0.001212, allocations: 108.7 kB / 16.41 MB, free: 6.445 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.001178/0.001178, allocations: 185 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.561/1.561, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2362/0.2362, allocations: 43.52 MB / 314.1 MB, free: 472 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.002001/0.002001, allocations: 63.91 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1345, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002778/0.1373, allocations: 1.442 MB / 0.4888 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000825/0.1382, allocations: 455.8 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.886e-05/0.1382, allocations: 0 / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.93e-05/0.1383, allocations: 3.938 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.88e-05/0.1383, allocations: 3.938 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000198/0.1385, allocations: 23.97 kB / 0.4893 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.96e-05/0.1386, allocations: 39.84 kB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.1388, allocations: 7.984 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.034e-05/0.1389, allocations: 19.92 kB / 0.4893 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.908e-05/0.1389, allocations: 15.92 kB / 0.4893 GB, free: 10.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.139, allocations: 7.984 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.286e-05/0.139, allocations: 4 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.155e-05/0.139, allocations: 3.938 kB / 0.4894 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.469e-05/0.1391, allocations: 19.92 kB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.1392, allocations: 27.91 kB / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1392, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1392, allocations: 0 / 0.4894 GB, free: 10.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1392, allocations: 0 / 0.4894 GB, free: 10.25 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.0005296/0.1397, allocations: 358.8 kB / 0.4897 GB, free: 9.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1398, allocations: 11.89 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.868e-05/0.1398, allocations: 34.75 kB / 0.4898 GB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.1399, allocations: 8.891 kB / 0.4898 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.14, allocations: 168.4 kB / 0.49 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1401, allocations: 8.375 kB / 0.49 GB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.1401, allocations: 4.312 kB / 0.49 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.1403, allocations: 59.52 kB / 0.49 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1403, allocations: 4 kB / 0.49 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.1403, allocations: 0 / 0.49 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1403, allocations: 0 / 0.49 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.283e-05/0.1404, allocations: 19.98 kB / 0.49 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004371/0.1409, allocations: 264.8 kB / 0.4903 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.365e-05/0.141, allocations: 34.5 kB / 0.4903 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.075e-05/0.141, allocations: 24.84 kB / 0.4904 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.141, allocations: 0 / 0.4904 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.1411, allocations: 30.56 kB / 0.4904 GB, free: 9.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.1411, allocations: 8 kB / 0.4904 GB, free: 9.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002608/0.1414, allocations: 69.56 kB / 0.4905 GB, free: 8.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.1414, allocations: 77.11 kB / 0.4905 GB, free: 8.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.91e-05/0.1415, allocations: 105.8 kB / 0.4906 GB, free: 8.773 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.1416, allocations: 29.7 kB / 0.4907 GB, free: 8.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/0.1416, allocations: 84.14 kB / 0.4907 GB, free: 8.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.1417, allocations: 3.953 kB / 0.4907 GB, free: 8.648 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-05/0.1417, allocations: 21.84 kB / 0.4908 GB, free: 8.621 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1419, allocations: 322.8 kB / 0.4911 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.744e-05/0.1419, allocations: 8 kB / 0.4911 GB, free: 8.289 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.822e-05/0.142, allocations: 25.7 kB / 0.4911 GB, free: 8.258 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.846e-05/0.1421, allocations: 24.84 kB / 0.4911 GB, free: 8.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1421, allocations: 0 / 0.4911 GB, free: 8.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001314/0.1422, allocations: 69.64 kB / 0.4912 GB, free: 8.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1422, allocations: 4 kB / 0.4912 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.1422, allocations: 4 kB / 0.4912 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1423, allocations: 0 / 0.4912 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.504e-05/0.1423, allocations: 0 / 0.4912 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1423, allocations: 4 kB / 0.4912 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.1425, allocations: 7.984 kB / 0.4912 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.1425, allocations: 0 / 0.4912 GB, free: 8.137 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.862e-05/0.1426, allocations: 121.7 kB / 0.4913 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.428e-05/0.1426, allocations: 3.953 kB / 0.4913 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.1427, allocations: 15.66 kB / 0.4914 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1427, allocations: 3.984 kB / 0.4914 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1427, allocations: 4 kB / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.1427, allocations: 0 / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.1429, allocations: 165.6 kB / 0.4915 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1429, allocations: 0 / 0.4915 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.1429, allocations: 0 / 0.4915 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.143, allocations: 4 kB / 0.4915 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.143, allocations: 7.938 kB / 0.4915 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.143, allocations: 4 kB / 0.4915 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.143, allocations: 3.984 kB / 0.4915 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001941/0.1432, allocations: 147.4 kB / 0.4917 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.1433, allocations: 89 kB / 0.4918 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.1433, allocations: 0 / 0.4918 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.554e-05/0.1434, allocations: 7.984 kB / 0.4918 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.26e-05/0.1434, allocations: 16.02 kB / 0.4918 GB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.1434, allocations: 3.938 kB / 0.4918 GB, free: 7.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.902e-05/0.1435, allocations: 87.27 kB / 0.4919 GB, free: 7.367 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1435, allocations: 0 / 0.4919 GB, free: 7.367 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002161/0.1437, allocations: 8 kB / 0.4919 GB, free: 7.359 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.0005048/0.1442, allocations: 0.685 MB / 0.4925 GB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.1444, allocations: 23.98 kB / 0.4926 GB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1444, allocations: 0 / 0.4926 GB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.076e-05/0.1445, allocations: 12 kB / 0.4926 GB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.1447, allocations: 10.64 kB / 0.4926 GB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004364/0.1451, allocations: 160.1 kB / 0.4927 GB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.1455, allocations: 0.6807 MB / 0.4934 GB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.765e-05/0.1455, allocations: 0 / 0.4934 GB, free: 5.703 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.919e-05/0.1456, allocations: 19.42 kB / 0.4934 GB, free: 5.684 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1456, allocations: 0 / 0.4934 GB, free: 5.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.1695, allocations: 1.499 MB / 0.4949 GB, free: 4.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/7.773, allocations: 7.797 kB / 0.4949 GB, free: 4.164 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/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