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.001392/0.001392, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001557/0.001557, allocations: 215.6 kB / 24.54 MB, free: 4.02 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.473/1.473, allocations: 230.3 MB / 258 MB, free: 8.203 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.2306/0.2306, allocations: 46.89 MB / 361.3 MB, free: 4.441 MB / 286.1 MB " [Timeout remaining time 179] 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.003153/0.003153, allocations: 75.88 kB / 0.4966 GB, free: 8.109 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.423, allocations: 66.03 MB / 0.561 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00372/0.4267, allocations: 1.469 MB / 0.5625 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.428, allocations: 486.8 kB / 0.5629 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.729e-05/0.428, allocations: 0 / 0.5629 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.617e-05/0.4281, allocations: 7.938 kB / 0.563 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.091e-05/0.4281, allocations: 3.938 kB / 0.563 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.4284, allocations: 31.89 kB / 0.563 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.4285, allocations: 43.8 kB / 0.563 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.4287, allocations: 8 kB / 0.563 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.4288, allocations: 27.91 kB / 0.5631 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.653e-05/0.4289, allocations: 15.92 kB / 0.5631 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.4289, allocations: 4 kB / 0.5631 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.281e-05/0.4289, allocations: 7.938 kB / 0.5631 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.674e-05/0.4289, allocations: 8 kB / 0.5631 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.504e-05/0.429, allocations: 15.92 kB / 0.5631 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.4291, allocations: 37.8 kB / 0.5631 GB, free: 2.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4291, allocations: 0 / 0.5631 GB, free: 2.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4291, allocations: 0 / 0.5631 GB, free: 2.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.4291, allocations: 4 kB / 0.5632 GB, free: 2.504 MB / 398.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.0005777/0.4297, allocations: 359.3 kB / 0.5635 GB, free: 2.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.4298, allocations: 8.031 kB / 0.5635 GB, free: 2.098 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.106e-05/0.4298, allocations: 34.69 kB / 0.5635 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.43, allocations: 12.92 kB / 0.5635 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.4302, allocations: 180.3 kB / 0.5637 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.4303, allocations: 4.375 kB / 0.5637 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.4303, allocations: 4.375 kB / 0.5637 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.4304, allocations: 59.53 kB / 0.5638 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4304, allocations: 0 / 0.5638 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.4305, allocations: 0 / 0.5638 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.4305, allocations: 0 / 0.5638 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.4306, allocations: 27.91 kB / 0.5638 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.431, allocations: 268.8 kB / 0.5641 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.748e-05/0.4311, allocations: 34.56 kB / 0.5641 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.123e-05/0.4312, allocations: 16.91 kB / 0.5641 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.4312, allocations: 0 / 0.5641 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.4312, allocations: 38.55 kB / 0.5642 GB, free: 1.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 7.82e-07/0.4312, allocations: 0 / 0.5642 GB, free: 1.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002685/0.4315, allocations: 65.62 kB / 0.5642 GB, free: 1.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.4315, allocations: 81.09 kB / 0.5643 GB, free: 1.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.4316, allocations: 113.8 kB / 0.5644 GB, free: 1.012 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.4317, allocations: 25.7 kB / 0.5644 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.684e-05/0.4317, allocations: 88.14 kB / 0.5645 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.4317, allocations: 7.938 kB / 0.5645 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/0.4318, allocations: 17.72 kB / 0.5645 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.4319, allocations: 326.9 kB / 0.5648 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.601e-05/0.432, allocations: 8 kB / 0.5649 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.511e-05/0.432, allocations: 25.7 kB / 0.5649 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.873e-05/0.4321, allocations: 28.78 kB / 0.5649 GB, free: 472 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4321, allocations: 0 / 0.5649 GB, free: 472 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001313/0.4322, allocations: 61.67 kB / 0.565 GB, free: 404 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.4323, allocations: 4 kB / 0.565 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.4323, allocations: 4.031 kB / 0.565 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.4323, allocations: 0 / 0.565 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.931e-05/0.4324, allocations: 4 kB / 0.565 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.4324, allocations: 3.938 kB / 0.565 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.711e-05/0.4324, allocations: 11.94 kB / 0.565 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.4324, allocations: 4 kB / 0.565 GB, free: 372 kB / 398.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.0001031/0.4325, allocations: 115.1 kB / 0.5651 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.4325, allocations: 4 kB / 0.5651 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.4326, allocations: 11.61 kB / 0.5651 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.4326, allocations: 0 / 0.5651 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4326, allocations: 7.938 kB / 0.5651 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.4326, allocations: 0 / 0.5651 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001846/0.4328, allocations: 165.6 kB / 0.5653 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.4328, allocations: 0 / 0.5653 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.556e-05/0.4328, allocations: 4 kB / 0.5653 GB, free: 0 / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.4328, allocations: 0 / 0.5653 GB, free: 0 / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.4328, allocations: 0 / 0.5653 GB, free: 0 / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.88e-05/0.4328, allocations: 4.047 kB / 0.5653 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4328, allocations: 8 kB / 0.5653 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.433, allocations: 151.4 kB / 0.5654 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.4331, allocations: 77.11 kB / 0.5655 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.4331, allocations: 8 kB / 0.5655 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.254e-05/0.4332, allocations: 7.984 kB / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.961e-05/0.4332, allocations: 7.984 kB / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.4332, allocations: 0 / 0.5655 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.558e-05/0.4333, allocations: 99.55 kB / 0.5656 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4333, allocations: 4 kB / 0.5656 GB, free: 15.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.4335, allocations: 4 kB / 0.5656 GB, free: 15.6 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.0004818/0.434, allocations: 0.6773 MB / 0.5663 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001655/0.4342, allocations: 27.98 kB / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4342, allocations: 0 / 0.5663 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.213e-05/0.4342, allocations: 19.92 kB / 0.5664 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.4344, allocations: 4 kB / 0.5664 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.4358, allocations: 1.266 MB / 0.5676 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.4362, allocations: 0.6846 MB / 0.5683 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.412e-05/0.4362, allocations: 7.969 kB / 0.5683 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.4362, allocations: 11.44 kB / 0.5683 GB, free: 12.77 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4362, allocations: 0 / 0.5683 GB, free: 12.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.46, allocations: 1.55 MB / 0.5698 GB, free: 11.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.599/8.059, allocations: 4.062 kB / 0.5698 GB, free: 11.29 MB / 414.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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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.000598325 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable hysteresis.y in file ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.095518201123923]