Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2248/0.2248, allocations: 44.18 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 67.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4206/0.4221, allocations: 60.82 MB / 0.5184 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002563/0.4247, allocations: 1.456 MB / 0.5198 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007157/0.4255, allocations: 412.9 kB / 0.5202 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.974e-05/0.4255, allocations: 5.188 kB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.279e-05/0.4256, allocations: 0.75 kB / 0.5202 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.269e-05/0.4256, allocations: 9.875 kB / 0.5202 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.4259, allocations: 17.56 kB / 0.5203 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.21e-05/0.426, allocations: 31.06 kB / 0.5203 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.929e-05/0.4261, allocations: 4.594 kB / 0.5203 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.437e-05/0.4262, allocations: 22.45 kB / 0.5203 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.509e-05/0.4262, allocations: 16.17 kB / 0.5203 GB, free: 1.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.4263, allocations: 6.703 kB / 0.5203 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.067e-05/0.4263, allocations: 7.031 kB / 0.5203 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.141e-05/0.4263, allocations: 6.5 kB / 0.5203 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.43e-05/0.4263, allocations: 13.62 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.931e-05/0.4265, allocations: 33.48 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.4265, allocations: 1.062 kB / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4265, allocations: 0 / 0.5204 GB, free: 1.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.4265, allocations: 0 / 0.5204 GB, free: 1.918 MB / 382.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.0004165/0.4269, allocations: 348.7 kB / 0.5207 GB, free: 1.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.427, allocations: 9.656 kB / 0.5207 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.06e-05/0.427, allocations: 36.5 kB / 0.5208 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.284e-05/0.427, allocations: 7.266 kB / 0.5208 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.957e-05/0.4271, allocations: 172.5 kB / 0.5209 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.4271, allocations: 1.5 kB / 0.5209 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.4272, allocations: 9.5 kB / 0.5209 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.4273, allocations: 64.73 kB / 0.521 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.4273, allocations: 0 / 0.521 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.4274, allocations: 1.797 kB / 0.521 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.4274, allocations: 4 kB / 0.521 GB, free: 1.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.283e-05/0.4275, allocations: 19.8 kB / 0.521 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000358/0.4278, allocations: 261.7 kB / 0.5213 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.816e-05/0.4279, allocations: 34.48 kB / 0.5213 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.428, allocations: 12.89 kB / 0.5213 GB, free: 0.918 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.428, allocations: 5.156 kB / 0.5213 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.428, allocations: 35.36 kB / 0.5214 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.4281, allocations: 1.156 kB / 0.5214 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002591/0.4283, allocations: 61.22 kB / 0.5214 GB, free: 0.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.4284, allocations: 79.05 kB / 0.5215 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.537e-05/0.4284, allocations: 114.6 kB / 0.5216 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.4285, allocations: 31.72 kB / 0.5216 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.76e-05/0.4285, allocations: 87.16 kB / 0.5217 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.4285, allocations: 5.844 kB / 0.5217 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.4286, allocations: 14.66 kB / 0.5217 GB, free: 500 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.411e-05/0.4286, allocations: 325.3 kB / 0.5221 GB, free: 168 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.045e-05/0.4287, allocations: 13.42 kB / 0.5221 GB, free: 164 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.026e-05/0.4288, allocations: 24.7 kB / 0.5221 GB, free: 144 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.52e-05/0.4289, allocations: 28.56 kB / 0.5221 GB, free: 128 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4289, allocations: 1.188 kB / 0.5221 GB, free: 128 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001296/0.429, allocations: 58.72 kB / 0.5222 GB, free: 88 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.429, allocations: 8.688 kB / 0.5222 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.429, allocations: 9.156 kB / 0.5222 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.4291, allocations: 0 / 0.5222 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.359e-05/0.4291, allocations: 5.484 kB / 0.5222 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.4291, allocations: 0 / 0.5222 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.141e-05/0.4292, allocations: 12.81 kB / 0.5222 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.4292, allocations: 1.094 kB / 0.5222 GB, free: 72 kB / 382.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.0001113/0.4293, allocations: 117.3 kB / 0.5223 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.4294, allocations: 2.25 kB / 0.5223 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.4294, allocations: 9.469 kB / 0.5223 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.4294, allocations: 1.125 kB / 0.5223 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4294, allocations: 0.8906 kB / 0.5223 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4294, allocations: 0.9688 kB / 0.5223 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.4296, allocations: 170.3 kB / 0.5225 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4296, allocations: 4 kB / 0.5225 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.4297, allocations: 5.266 kB / 0.5225 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.4297, allocations: 1.312 kB / 0.5225 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-06/0.4297, allocations: 4.641 kB / 0.5225 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.4297, allocations: 1.125 kB / 0.5225 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4297, allocations: 0 / 0.5225 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000174/0.4299, allocations: 159.8 kB / 0.5227 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/0.43, allocations: 81.84 kB / 0.5227 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.43, allocations: 2 kB / 0.5227 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.742e-05/0.4301, allocations: 8.203 kB / 0.5228 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.445e-05/0.4301, allocations: 6.125 kB / 0.5228 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.4301, allocations: 2.078 kB / 0.5228 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.086e-05/0.4302, allocations: 87.48 kB / 0.5228 GB, free: 15.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4302, allocations: 0 / 0.5228 GB, free: 15.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002175/0.4304, allocations: 6.469 kB / 0.5229 GB, free: 15.4 MB / 398.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.0004676/0.4309, allocations: 0.6869 MB / 0.5235 GB, free: 14.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001629/0.4311, allocations: 29.94 kB / 0.5236 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4311, allocations: 0 / 0.5236 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.372e-05/0.4311, allocations: 14.38 kB / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002108/0.4314, allocations: 2.922 kB / 0.5236 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004415/0.4318, allocations: 149.4 kB / 0.5237 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.4321, allocations: 0.6895 MB / 0.5244 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.494e-05/0.4321, allocations: 2.125 kB / 0.5244 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.957e-05/0.4322, allocations: 15.75 kB / 0.5244 GB, free: 13.84 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4322, allocations: 0 / 0.5244 GB, free: 13.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.4513, allocations: 1.504 MB / 0.5259 GB, free: 13.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.657/8.108, allocations: 10.17 kB / 0.5259 GB, free: 13.43 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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.0012 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches