Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00157/0.00157, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.514/1.514, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2527/0.2527, allocations: 46.97 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 71.88 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4337/0.4357, allocations: 66.03 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003033/0.4387, allocations: 1.465 MB / 0.562 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009485/0.4397, allocations: 451 kB / 0.5624 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.4397, allocations: 0 / 0.5624 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.017e-05/0.4398, allocations: 3.938 kB / 0.5624 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.686e-05/0.4398, allocations: 3.938 kB / 0.5624 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.4401, allocations: 35.91 kB / 0.5625 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.4402, allocations: 31.86 kB / 0.5625 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.609e-05/0.4403, allocations: 15.92 kB / 0.5625 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.4404, allocations: 19.98 kB / 0.5625 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.904e-05/0.4405, allocations: 15.92 kB / 0.5626 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.4405, allocations: 8 kB / 0.5626 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.041e-05/0.4405, allocations: 4 kB / 0.5626 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.007e-05/0.4406, allocations: 15.91 kB / 0.5626 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.4406, allocations: 11.94 kB / 0.5626 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.4407, allocations: 37.67 kB / 0.5626 GB, free: 2.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4407, allocations: 0 / 0.5626 GB, free: 2.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4407, allocations: 0 / 0.5626 GB, free: 2.129 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.4407, allocations: 0 / 0.5626 GB, free: 2.129 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.0005006/0.4412, allocations: 278.2 kB / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.4413, allocations: 8.031 kB / 0.5629 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.4413, allocations: 34.75 kB / 0.5629 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.4415, allocations: 12.92 kB / 0.563 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.4417, allocations: 130.4 kB / 0.5631 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.4417, allocations: 4.359 kB / 0.5631 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.749e-06/0.4417, allocations: 384 / 0.5631 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.4419, allocations: 89.17 kB / 0.5632 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.046e-06/0.4419, allocations: 0 / 0.5632 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.4419, allocations: 4 kB / 0.5632 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.4419, allocations: 0 / 0.5632 GB, free: 1.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.461e-05/0.442, allocations: 31.91 kB / 0.5632 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000386/0.4424, allocations: 231.9 kB / 0.5634 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.501e-05/0.4425, allocations: 30.56 kB / 0.5635 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.192e-05/0.4426, allocations: 16.92 kB / 0.5635 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.4426, allocations: 3.938 kB / 0.5635 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.4426, allocations: 30.56 kB / 0.5635 GB, free: 1.098 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.4426, allocations: 0 / 0.5635 GB, free: 1.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002531/0.4429, allocations: 73.61 kB / 0.5636 GB, free: 1.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.4429, allocations: 77.11 kB / 0.5636 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.443, allocations: 109.8 kB / 0.5637 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/0.4431, allocations: 29.69 kB / 0.5638 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.966e-05/0.4431, allocations: 84.14 kB / 0.5639 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.4431, allocations: 7.953 kB / 0.5639 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/0.4432, allocations: 17.72 kB / 0.5639 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.4433, allocations: 318.8 kB / 0.5642 GB, free: 344 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.865e-05/0.4434, allocations: 12 kB / 0.5642 GB, free: 332 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.281e-05/0.4434, allocations: 55.53 kB / 0.5643 GB, free: 264 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.771e-05/0.4435, allocations: 28.78 kB / 0.5643 GB, free: 232 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4435, allocations: 0 / 0.5643 GB, free: 232 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001415/0.4437, allocations: 61.67 kB / 0.5643 GB, free: 164 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.4437, allocations: 4 kB / 0.5643 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4437, allocations: 0 / 0.5643 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.4437, allocations: 144 / 0.5643 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.904e-05/0.4438, allocations: 4 kB / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.4438, allocations: 0 / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.569e-05/0.4439, allocations: 23.95 kB / 0.5644 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.4439, allocations: 0 / 0.5644 GB, free: 132 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.903e-05/0.444, allocations: 113.8 kB / 0.5645 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.444, allocations: 4.375 kB / 0.5645 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.92e-05/0.444, allocations: 7.609 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.444, allocations: 4 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.444, allocations: 0 / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.444, allocations: 3.938 kB / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.4442, allocations: 132.6 kB / 0.5646 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4442, allocations: 4 kB / 0.5646 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.604e-05/0.4443, allocations: 4 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.4443, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.4443, allocations: 7.984 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4443, allocations: 0 / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4443, allocations: 7.938 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.4445, allocations: 151.4 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.026e-05/0.4445, allocations: 4 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.4445, allocations: 3.984 kB / 0.5648 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.082e-05/0.4446, allocations: 4 kB / 0.5648 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.441e-05/0.4446, allocations: 16.02 kB / 0.5648 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.4446, allocations: 0 / 0.5648 GB, free: 15.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.953e-05/0.4447, allocations: 91.27 kB / 0.5649 GB, free: 15.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4447, allocations: 3.938 kB / 0.5649 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.4449, allocations: 8 kB / 0.5649 GB, free: 15.5 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.0005334/0.4454, allocations: 0.6772 MB / 0.5656 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001548/0.4456, allocations: 23.98 kB / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4456, allocations: 8.031 kB / 0.5656 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.89e-05/0.4457, allocations: 19.92 kB / 0.5656 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.4459, allocations: 2.656 kB / 0.5656 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.4472, allocations: 1.262 MB / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.122e-05/0.4473, allocations: 63.34 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.786e-05/0.4474, allocations: 4.047 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.155e-05/0.4474, allocations: 19.44 kB / 0.5669 GB, free: 13.3 MB / 414.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4474, allocations: 288 / 0.5669 GB, free: 13.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.4734, allocations: 2.117 MB / 0.569 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.35, allocations: 2.234 kB / 0.569 GB, free: 11.3 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/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_4.1.0_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: 14.491705118009122]