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.0009331/0.0009332, allocations: 93.78 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 182.9 kB / 16.92 MB, free: 6.691 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.574/1.574, allocations: 205.4 MB / 223.1 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5032/0.5032, allocations: 43.58 MB / 315 MB, free: 9.039 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.0005593/0.0005593, allocations: 20 kB / 384.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1663, allocations: 58.87 MB / 443.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002259/0.1687, allocations: 1.178 MB / 444.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.1698, allocations: 444 kB / 445.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.271e-05/0.1699, allocations: 0 / 445.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.73e-05/0.1699, allocations: 0 / 445.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.529e-05/0.17, allocations: 7.938 kB / 445.2 MB, free: 11.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.1703, allocations: 7.984 kB / 445.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.953e-05/0.1704, allocations: 35.86 kB / 445.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.1705, allocations: 12 kB / 445.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.1706, allocations: 19.91 kB / 445.2 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.124e-05/0.1707, allocations: 15.92 kB / 445.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.1707, allocations: 4 kB / 445.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.2e-05/0.1708, allocations: 0 / 445.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.228e-05/0.1708, allocations: 4 kB / 445.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.365e-05/0.1709, allocations: 37.62 kB / 445.3 MB, free: 11.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.443e-05/0.171, allocations: 32.16 kB / 445.3 MB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.171, allocations: 0 / 445.3 MB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.171, allocations: 0 / 445.3 MB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.171, allocations: 0 / 445.3 MB, free: 11 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.0005506/0.1715, allocations: 347.5 kB / 445.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.1716, allocations: 11.97 kB / 445.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.862e-05/0.1717, allocations: 38.73 kB / 445.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.1717, allocations: 4.844 kB / 445.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001543/0.1719, allocations: 176.2 kB / 445.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1719, allocations: 384 / 445.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.1719, allocations: 384 / 445.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.1721, allocations: 71.52 kB / 446 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1722, allocations: 0 / 446 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.1722, allocations: 4 kB / 446 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1722, allocations: 0 / 446 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.1723, allocations: 23.98 kB / 446 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005918/0.1729, allocations: 272.8 kB / 446.3 MB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.173, allocations: 30.58 kB / 446.3 MB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.521e-05/0.1731, allocations: 16.91 kB / 446.3 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.1731, allocations: 4 kB / 446.3 MB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.1732, allocations: 30.56 kB / 446.3 MB, free: 9.812 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.1732, allocations: 0 / 446.3 MB, free: 9.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003131/0.1735, allocations: 77.59 kB / 446.4 MB, free: 9.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.1736, allocations: 77.11 kB / 446.5 MB, free: 9.637 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.1737, allocations: 110 kB / 446.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.1737, allocations: 37.64 kB / 446.6 MB, free: 9.477 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.1738, allocations: 80.14 kB / 446.7 MB, free: 9.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.1738, allocations: 7.906 kB / 446.7 MB, free: 9.387 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.1739, allocations: 17.7 kB / 446.7 MB, free: 9.363 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.174, allocations: 314.8 kB / 447 MB, free: 9.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.815e-05/0.1741, allocations: 15.98 kB / 447.1 MB, free: 9.031 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.802e-05/0.1742, allocations: 29.72 kB / 447.1 MB, free: 8.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.969e-05/0.1743, allocations: 28.84 kB / 447.1 MB, free: 8.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1743, allocations: 0 / 447.1 MB, free: 8.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001449/0.1744, allocations: 65.61 kB / 447.2 MB, free: 8.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1745, allocations: 8 kB / 447.2 MB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1745, allocations: 4.031 kB / 447.2 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1745, allocations: 0 / 447.2 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.244e-05/0.1746, allocations: 4 kB / 447.2 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.1746, allocations: 3.984 kB / 447.2 MB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.726e-05/0.1747, allocations: 11.91 kB / 447.2 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-06/0.1747, allocations: 3.938 kB / 447.2 MB, free: 8.859 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 0.0001015/0.1748, allocations: 117.8 kB / 447.3 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/0.1748, allocations: 8 kB / 447.3 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.955e-05/0.1749, allocations: 7.531 kB / 447.3 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1749, allocations: 0 / 447.3 MB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.1749, allocations: 4 kB / 447.3 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1749, allocations: 0 / 447.3 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.1751, allocations: 165.6 kB / 447.5 MB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1751, allocations: 0 / 447.5 MB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.469e-05/0.1752, allocations: 7.938 kB / 447.5 MB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1752, allocations: 0 / 447.5 MB, free: 8.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1752, allocations: 7.984 kB / 447.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1752, allocations: 4 kB / 447.5 MB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1752, allocations: 0 / 447.5 MB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.1754, allocations: 151.5 kB / 447.7 MB, free: 8.324 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.669e-05/0.1755, allocations: 81.02 kB / 447.8 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.1755, allocations: 3.984 kB / 447.8 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-05/0.1756, allocations: 12.03 kB / 447.8 MB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.1757, allocations: 11.98 kB / 447.8 MB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.1757, allocations: 0 / 447.8 MB, free: 8.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.979e-05/0.1757, allocations: 91.25 kB / 447.9 MB, free: 8.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1757, allocations: 0 / 447.9 MB, free: 8.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.176, allocations: 8 kB / 447.9 MB, free: 8.102 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.0005885/0.1766, allocations: 0.6967 MB / 448.6 MB, free: 7.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.1768, allocations: 31.92 kB / 448.6 MB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1768, allocations: 0 / 448.6 MB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.247e-05/0.1769, allocations: 24.02 kB / 448.6 MB, free: 7.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.1771, allocations: 3.938 kB / 448.6 MB, free: 7.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004842/0.1776, allocations: 170.1 kB / 448.8 MB, free: 7.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.1779, allocations: 0.677 MB / 449.5 MB, free: 6.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.863e-05/0.178, allocations: 8.062 kB / 449.5 MB, free: 6.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.265e-05/0.178, allocations: 15.42 kB / 449.5 MB, free: 6.387 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.178, allocations: 0 / 449.5 MB, free: 6.387 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.1912, allocations: 1.214 MB / 450.7 MB, free: 5.195 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.1914, allocations: 177.9 kB / 450.9 MB, free: 4.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/1.933, allocations: 0 / 450.9 MB, free: 4.941 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches