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.001319/0.001319, allocations: 114 kB / 20.43 MB, free: 1.457 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.001456/0.001456, allocations: 214.9 kB / 23.74 MB, free: 4.672 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.531/1.531, allocations: 230.5 MB / 257.4 MB, free: 7.984 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.2549/0.2549, allocations: 46.92 MB / 360.8 MB, free: 4.16 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.002394/0.002394, allocations: 83.86 kB / 0.4962 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.4331, allocations: 66.09 MB / 0.5607 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.00303/0.4361, allocations: 1.469 MB / 0.5622 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009648/0.4371, allocations: 486.8 kB / 0.5626 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.736e-05/0.4372, allocations: 3.938 kB / 0.5626 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.48e-05/0.4372, allocations: 0 / 0.5626 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.173e-05/0.4372, allocations: 3.938 kB / 0.5626 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.4375, allocations: 35.89 kB / 0.5627 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.4376, allocations: 43.8 kB / 0.5627 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.919e-05/0.4377, allocations: 4 kB / 0.5627 GB, free: 2.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.4378, allocations: 23.97 kB / 0.5627 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.922e-05/0.4379, allocations: 15.92 kB / 0.5628 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.4379, allocations: 4 kB / 0.5628 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.455e-05/0.438, allocations: 4 kB / 0.5628 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.438, allocations: 7.938 kB / 0.5628 GB, free: 2.172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.901e-05/0.438, allocations: 15.92 kB / 0.5628 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00012/0.4381, allocations: 41.66 kB / 0.5628 GB, free: 2.117 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.4381, allocations: 0 / 0.5628 GB, free: 2.117 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.4381, allocations: 4 kB / 0.5628 GB, free: 2.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.4381, allocations: 0 / 0.5628 GB, free: 2.113 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.0004557/0.4386, allocations: 286.2 kB / 0.5631 GB, free: 1.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4386, allocations: 11.97 kB / 0.5631 GB, free: 1.793 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.078e-05/0.4387, allocations: 30.75 kB / 0.5631 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.4388, allocations: 8.938 kB / 0.5631 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.4391, allocations: 118.5 kB / 0.5633 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.4391, allocations: 4.375 kB / 0.5633 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.4391, allocations: 4.375 kB / 0.5633 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.4393, allocations: 63.52 kB / 0.5633 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4393, allocations: 0 / 0.5633 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.4393, allocations: 0 / 0.5633 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.4393, allocations: 0 / 0.5633 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.572e-05/0.4394, allocations: 27.91 kB / 0.5634 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004335/0.4398, allocations: 251.8 kB / 0.5636 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.844e-05/0.4399, allocations: 30.56 kB / 0.5636 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.67e-05/0.44, allocations: 12.92 kB / 0.5636 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.44, allocations: 0 / 0.5636 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.44, allocations: 34.56 kB / 0.5637 GB, free: 1.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.44, allocations: 3.938 kB / 0.5637 GB, free: 1.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002523/0.4403, allocations: 61.67 kB / 0.5637 GB, free: 1.039 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.4403, allocations: 77.11 kB / 0.5638 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.4404, allocations: 113.8 kB / 0.5639 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.4404, allocations: 25.7 kB / 0.5639 GB, free: 0.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.051e-05/0.4405, allocations: 92.12 kB / 0.564 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.4405, allocations: 7.938 kB / 0.564 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.4406, allocations: 17.72 kB / 0.5641 GB, free: 0.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4407, allocations: 322.9 kB / 0.5644 GB, free: 352 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.166e-05/0.4408, allocations: 16 kB / 0.5644 GB, free: 336 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.724e-05/0.4408, allocations: 29.64 kB / 0.5644 GB, free: 300 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.11e-05/0.4409, allocations: 24.84 kB / 0.5644 GB, free: 272 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4409, allocations: 0 / 0.5644 GB, free: 272 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001294/0.4411, allocations: 57.67 kB / 0.5645 GB, free: 208 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4411, allocations: 8.031 kB / 0.5645 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.4411, allocations: 0 / 0.5645 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.4411, allocations: 0 / 0.5645 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.255e-05/0.4412, allocations: 4 kB / 0.5645 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.4412, allocations: 0 / 0.5645 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.084e-05/0.4412, allocations: 23.88 kB / 0.5645 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.4412, allocations: 3.984 kB / 0.5645 GB, free: 168 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 9.601e-05/0.4413, allocations: 117.7 kB / 0.5646 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.444e-05/0.4414, allocations: 0 / 0.5646 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.4414, allocations: 11.62 kB / 0.5646 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4414, allocations: 4 kB / 0.5646 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4414, allocations: 3.984 kB / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.4414, allocations: 0 / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.4416, allocations: 129.1 kB / 0.5648 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.4416, allocations: 7.984 kB / 0.5648 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.4416, allocations: 0 / 0.5648 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.4416, allocations: 0 / 0.5648 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.4416, allocations: 7.938 kB / 0.5648 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4416, allocations: 0 / 0.5648 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4416, allocations: 4 kB / 0.5648 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.4418, allocations: 155.4 kB / 0.5649 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.108e-05/0.4418, allocations: 4 kB / 0.5649 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.4419, allocations: 0 / 0.5649 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.225e-05/0.4419, allocations: 7.984 kB / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.581e-05/0.442, allocations: 15.92 kB / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.442, allocations: 4.031 kB / 0.565 GB, free: 15.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.528e-05/0.4421, allocations: 91.27 kB / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4421, allocations: 0 / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000215/0.4423, allocations: 4 kB / 0.5651 GB, free: 15.54 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.0005023/0.4428, allocations: 0.6812 MB / 0.5657 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001625/0.4429, allocations: 32.06 kB / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4429, allocations: 0 / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.706e-05/0.443, allocations: 12 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.4432, allocations: 2.344 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.4446, allocations: 1.274 MB / 0.567 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.4449, allocations: 0.6807 MB / 0.5677 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.532e-05/0.445, allocations: 4 kB / 0.5677 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.642e-05/0.445, allocations: 15.42 kB / 0.5677 GB, free: 12.71 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.445, allocations: 0 / 0.5677 GB, free: 12.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.4761, allocations: 1.665 MB / 0.5693 GB, free: 11.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.34, allocations: 10.5 kB / 0.5693 GB, free: 11.14 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.491812296000717]