Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001933/0.001933, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002474/0.002474, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.254/0.254, allocations: 46.9 MB / 357.4 MB, free: 10.45 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002297/0.002297, allocations: 79.88 kB / 0.4912 GB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1638, allocations: 65.99 MB / 0.5557 GB, free: 6.184 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00356/0.1674, allocations: 1.467 MB / 0.5571 GB, free: 4.699 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.1686, allocations: 488.5 kB / 0.5576 GB, free: 4.219 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.925e-05/0.1687, allocations: 0 / 0.5576 GB, free: 4.219 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.519e-05/0.1687, allocations: 3.938 kB / 0.5576 GB, free: 4.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.433e-05/0.1688, allocations: 3.938 kB / 0.5576 GB, free: 4.211 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.169, allocations: 31.91 kB / 0.5576 GB, free: 4.18 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.1692, allocations: 39.84 kB / 0.5577 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.1693, allocations: 4 kB / 0.5577 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.1694, allocations: 31.84 kB / 0.5577 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.482e-05/0.1695, allocations: 19.92 kB / 0.5577 GB, free: 4.086 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.1695, allocations: 0 / 0.5577 GB, free: 4.086 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.975e-05/0.1695, allocations: 8 kB / 0.5577 GB, free: 4.078 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.41e-05/0.1695, allocations: 4 kB / 0.5577 GB, free: 4.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.276e-05/0.1696, allocations: 15.92 kB / 0.5577 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.1697, allocations: 39.83 kB / 0.5578 GB, free: 4.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1697, allocations: 3.938 kB / 0.5578 GB, free: 4.016 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1697, allocations: 0 / 0.5578 GB, free: 4.016 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1697, allocations: 0 / 0.5578 GB, free: 4.016 MB / 414.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.0005889/0.1703, allocations: 363.3 kB / 0.5581 GB, free: 3.613 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.1704, allocations: 12.03 kB / 0.5581 GB, free: 3.602 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.18e-05/0.1704, allocations: 30.75 kB / 0.5582 GB, free: 3.562 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.1706, allocations: 12.92 kB / 0.5582 GB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.1709, allocations: 172.3 kB / 0.5583 GB, free: 3.344 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.643e-06/0.1709, allocations: 384 / 0.5583 GB, free: 3.344 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.1709, allocations: 8.375 kB / 0.5584 GB, free: 3.336 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.1711, allocations: 67.45 kB / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1711, allocations: 0 / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.1711, allocations: 0 / 0.5584 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.1711, allocations: 3.984 kB / 0.5584 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.519e-05/0.1712, allocations: 19.98 kB / 0.5584 GB, free: 3.234 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.1717, allocations: 264.9 kB / 0.5587 GB, free: 2.926 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.1718, allocations: 38.5 kB / 0.5587 GB, free: 2.879 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.383e-05/0.1719, allocations: 16.91 kB / 0.5587 GB, free: 2.859 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.1719, allocations: 3.984 kB / 0.5588 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.1719, allocations: 34.56 kB / 0.5588 GB, free: 2.812 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1719, allocations: 0 / 0.5588 GB, free: 2.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.000248/0.1722, allocations: 61.77 kB / 0.5588 GB, free: 2.746 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.1722, allocations: 77.11 kB / 0.5589 GB, free: 2.652 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.733e-05/0.1723, allocations: 117.8 kB / 0.559 GB, free: 2.527 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.1723, allocations: 25.7 kB / 0.5591 GB, free: 2.496 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.833e-05/0.1724, allocations: 92.08 kB / 0.5591 GB, free: 2.402 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.1724, allocations: 3.953 kB / 0.5591 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.1725, allocations: 17.7 kB / 0.5592 GB, free: 2.375 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1726, allocations: 318.8 kB / 0.5595 GB, free: 2.055 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.5e-05/0.1727, allocations: 20.02 kB / 0.5595 GB, free: 2.035 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.359e-05/0.1727, allocations: 21.72 kB / 0.5595 GB, free: 2.008 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.001e-05/0.1728, allocations: 25.22 kB / 0.5595 GB, free: 1.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.1728, allocations: 4 kB / 0.5595 GB, free: 1.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001429/0.1729, allocations: 57.67 kB / 0.5596 GB, free: 1.914 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.173, allocations: 7.938 kB / 0.5596 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.173, allocations: 7.875 kB / 0.5596 GB, free: 1.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.173, allocations: 8.031 kB / 0.5596 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.259e-05/0.173, allocations: 3.984 kB / 0.5596 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1731, allocations: 0 / 0.5596 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.718e-05/0.1731, allocations: 11.95 kB / 0.5596 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.1731, allocations: 0 / 0.5596 GB, free: 1.875 MB / 414.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.998e-05/0.1732, allocations: 121.8 kB / 0.5597 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.1732, allocations: 0 / 0.5597 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.1733, allocations: 11.53 kB / 0.5598 GB, free: 1.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1733, allocations: 4 kB / 0.5598 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1733, allocations: 0 / 0.5598 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1733, allocations: 0 / 0.5598 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.1735, allocations: 165.6 kB / 0.5599 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1735, allocations: 0 / 0.5599 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-05/0.1735, allocations: 0 / 0.5599 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1735, allocations: 4 kB / 0.5599 GB, free: 1.516 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.1735, allocations: 3.984 kB / 0.5599 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1735, allocations: 0 / 0.5599 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1735, allocations: 0 / 0.5599 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.1737, allocations: 159.4 kB / 0.5601 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.1738, allocations: 85.09 kB / 0.5602 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.1738, allocations: 0 / 0.5602 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.181e-05/0.1739, allocations: 4 kB / 0.5602 GB, free: 1.234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.392e-05/0.1739, allocations: 7.984 kB / 0.5602 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.174, allocations: 0 / 0.5602 GB, free: 1.227 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.212e-05/0.174, allocations: 95.3 kB / 0.5603 GB, free: 1.133 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.174, allocations: 0 / 0.5603 GB, free: 1.133 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.1742, allocations: 8 kB / 0.5603 GB, free: 1.125 MB / 414.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.0005202/0.1748, allocations: 0.6812 MB / 0.5609 GB, free: 428 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.1749, allocations: 36 kB / 0.561 GB, free: 392 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1749, allocations: 288 / 0.561 GB, free: 392 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.021e-05/0.175, allocations: 11.98 kB / 0.561 GB, free: 380 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/0.1752, allocations: 11.94 kB / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.1767, allocations: 1.262 MB / 0.5622 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.177, allocations: 0.6768 MB / 0.5629 GB, free: 14.31 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.991e-05/0.1771, allocations: 11.98 kB / 0.5629 GB, free: 14.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.443e-05/0.1771, allocations: 11.44 kB / 0.5629 GB, free: 14.29 MB / 430.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1771, allocations: 0 / 0.5629 GB, free: 14.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.2022, allocations: 1.526 MB / 0.5644 GB, free: 12.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.08/8.283, allocations: 10.8 kB / 0.5644 GB, free: 12.81 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.3851613602601]