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.001943/0.001943, allocations: 112.3 kB / 20.48 MB, free: 1.121 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.002262/0.002262, allocations: 214.6 kB / 23.78 MB, free: 4.316 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.534/1.534, allocations: 230.5 MB / 257.5 MB, free: 7.914 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.2505/0.2505, allocations: 46.95 MB / 360.9 MB, free: 3.898 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.002615/0.002615, allocations: 87.86 kB / 0.4962 GB, free: 7.492 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4185/0.4212, allocations: 66.08 MB / 0.5608 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003295/0.4244, allocations: 1.457 MB / 0.5622 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.4255, allocations: 462.8 kB / 0.5626 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.287e-05/0.4255, allocations: 0 / 0.5626 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.608e-05/0.4256, allocations: 3.938 kB / 0.5626 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.067e-05/0.4256, allocations: 3.938 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.4259, allocations: 31.91 kB / 0.5627 GB, free: 2.027 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.426, allocations: 35.91 kB / 0.5627 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.4261, allocations: 4 kB / 0.5627 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.4263, allocations: 31.86 kB / 0.5627 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.962e-05/0.4264, allocations: 15.92 kB / 0.5628 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.4264, allocations: 4 kB / 0.5628 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.405e-05/0.4264, allocations: 4 kB / 0.5628 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.4264, allocations: 11.97 kB / 0.5628 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.785e-05/0.4265, allocations: 11.94 kB / 0.5628 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.4266, allocations: 37.67 kB / 0.5628 GB, free: 1.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.4266, allocations: 3.938 kB / 0.5628 GB, free: 1.871 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.4266, allocations: 3.984 kB / 0.5628 GB, free: 1.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.4266, allocations: 0 / 0.5628 GB, free: 1.867 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.0005199/0.4272, allocations: 282.2 kB / 0.5631 GB, free: 1.562 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.4272, allocations: 8.031 kB / 0.5631 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.702e-05/0.4272, allocations: 30.75 kB / 0.5631 GB, free: 1.516 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.4274, allocations: 12.92 kB / 0.5631 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002547/0.4276, allocations: 122.5 kB / 0.5633 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.883e-06/0.4276, allocations: 384 / 0.5633 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.4277, allocations: 4.312 kB / 0.5633 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.4279, allocations: 85.23 kB / 0.5634 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.4279, allocations: 4 kB / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.4279, allocations: 0 / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.4279, allocations: 0 / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.128e-05/0.428, allocations: 23.97 kB / 0.5634 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004009/0.4284, allocations: 235.9 kB / 0.5636 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.807e-05/0.4285, allocations: 34.5 kB / 0.5636 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.096e-05/0.4285, allocations: 16.92 kB / 0.5637 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.4285, allocations: 0 / 0.5637 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.4286, allocations: 38.55 kB / 0.5637 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.02e-07/0.4286, allocations: 0 / 0.5637 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002425/0.4288, allocations: 53.69 kB / 0.5637 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.4289, allocations: 85.05 kB / 0.5638 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.429, allocations: 121.8 kB / 0.5639 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.429, allocations: 25.7 kB / 0.564 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.4291, allocations: 84.14 kB / 0.564 GB, free: 448 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.4291, allocations: 7.953 kB / 0.5641 GB, free: 440 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.4291, allocations: 13.72 kB / 0.5641 GB, free: 420 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.4293, allocations: 322.9 kB / 0.5644 GB, free: 88 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.992e-05/0.4293, allocations: 16 kB / 0.5644 GB, free: 72 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.484e-05/0.4294, allocations: 51.41 kB / 0.5644 GB, free: 8 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.4295, allocations: 24.84 kB / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4295, allocations: 0 / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001357/0.4297, allocations: 65.61 kB / 0.5645 GB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.4297, allocations: 7.938 kB / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.4297, allocations: 0 / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.4297, allocations: 0 / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.118e-05/0.4298, allocations: 8.172 kB / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.4298, allocations: 0 / 0.5645 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.995e-05/0.4298, allocations: 11.94 kB / 0.5645 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.4298, allocations: 8 kB / 0.5646 GB, free: 15.88 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 0.0001108/0.4299, allocations: 119.1 kB / 0.5647 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.43, allocations: 0 / 0.5647 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.702e-05/0.43, allocations: 11.61 kB / 0.5647 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.43, allocations: 4 kB / 0.5647 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.43, allocations: 0 / 0.5647 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.43, allocations: 0 / 0.5647 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.4302, allocations: 132.7 kB / 0.5648 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.4302, allocations: 4 kB / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.627e-05/0.4302, allocations: 0 / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.4302, allocations: 0 / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.4302, allocations: 7.984 kB / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.4302, allocations: 0 / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.4302, allocations: 0 / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/0.4304, allocations: 155.4 kB / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.272e-05/0.4304, allocations: 4 kB / 0.565 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.4304, allocations: 8.391 kB / 0.565 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.111e-05/0.4305, allocations: 4 kB / 0.565 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.4306, allocations: 11.98 kB / 0.565 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.4306, allocations: 0 / 0.565 GB, free: 15.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.487e-05/0.4306, allocations: 91.2 kB / 0.5651 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4306, allocations: 0 / 0.5651 GB, free: 15.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002234/0.4309, allocations: 12 kB / 0.5651 GB, free: 15.25 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.0005297/0.4314, allocations: 0.6811 MB / 0.5658 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001592/0.4316, allocations: 28.02 kB / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4316, allocations: 0 / 0.5658 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.247e-05/0.4316, allocations: 15.98 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.4318, allocations: 6.031 kB / 0.5658 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.4333, allocations: 1.262 MB / 0.567 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.766e-05/0.4333, allocations: 71.39 kB / 0.5671 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.013e-05/0.4334, allocations: 4 kB / 0.5671 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.934e-05/0.4334, allocations: 12.5 kB / 0.5671 GB, free: 13.05 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4334, allocations: 0 / 0.5671 GB, free: 13.05 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.4631, allocations: 2.2 MB / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.92, allocations: 14.38 kB / 0.5693 GB, free: 10.94 MB / 414.1 MB " [Timeout remaining time 648] (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.1.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: 15.13176979200216]