Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001261/0.001261, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2258/0.2258, allocations: 46.12 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 86.53 kB / 417.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1126, allocations: 62.45 MB / 480.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002629/0.1153, allocations: 1.458 MB / 481.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007628/0.116, allocations: 482.8 kB / 482.1 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.864e-05/0.1161, allocations: 3.938 kB / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.361e-05/0.1161, allocations: 3.984 kB / 482.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.304e-05/0.1162, allocations: 3.938 kB / 482.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001685/0.1163, allocations: 27.91 kB / 482.2 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.589e-05/0.1164, allocations: 35.86 kB / 482.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.784e-05/0.1165, allocations: 11.98 kB / 482.2 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.1166, allocations: 27.91 kB / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.6e-05/0.1167, allocations: 19.92 kB / 482.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.1167, allocations: 4 kB / 482.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.467e-05/0.1168, allocations: 4 kB / 482.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.384e-05/0.1168, allocations: 7.938 kB / 482.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.889e-05/0.1168, allocations: 15.92 kB / 482.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.106e-05/0.1169, allocations: 39.89 kB / 482.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.1169, allocations: 0 / 482.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1169, allocations: 3.938 kB / 482.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1169, allocations: 0 / 482.3 MB, free: 3.016 MB / 350.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.0004489/0.1174, allocations: 347.7 kB / 482.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.1174, allocations: 12.03 kB / 482.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.1175, allocations: 38.67 kB / 482.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.1176, allocations: 16.84 kB / 482.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.1178, allocations: 180.2 kB / 482.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.234e-06/0.1178, allocations: 384 / 482.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.1178, allocations: 4.375 kB / 482.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001446/0.118, allocations: 63.52 kB / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.118, allocations: 0 / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-06/0.118, allocations: 0 / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.118, allocations: 0 / 483 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.745e-05/0.1181, allocations: 23.92 kB / 483 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003633/0.1185, allocations: 264.9 kB / 483.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.794e-05/0.1186, allocations: 38.5 kB / 483.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.85e-05/0.1186, allocations: 16.92 kB / 483.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.1186, allocations: 0 / 483.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.1187, allocations: 30.56 kB / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.1187, allocations: 0 / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002285/0.1189, allocations: 65.61 kB / 483.4 MB, free: 1.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.119, allocations: 85.23 kB / 483.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.416e-05/0.1191, allocations: 105.8 kB / 483.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.1191, allocations: 29.7 kB / 483.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.1192, allocations: 88.12 kB / 483.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.1192, allocations: 7.891 kB / 483.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.1192, allocations: 17.72 kB / 483.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1194, allocations: 326.8 kB / 484.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.582e-05/0.1194, allocations: 4.375 kB / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.603e-05/0.1195, allocations: 29.7 kB / 484.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.101e-05/0.1196, allocations: 28.78 kB / 484.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1196, allocations: 4 kB / 484.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001351/0.1198, allocations: 65.66 kB / 484.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.1198, allocations: 4 kB / 484.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1198, allocations: 7.984 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.1198, allocations: 0 / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.289e-05/0.1199, allocations: 8.031 kB / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1199, allocations: 0 / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.828e-05/0.1199, allocations: 7.984 kB / 484.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.12, allocations: 0 / 484.2 MB, free: 0.8828 MB / 350.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.598e-05/0.1201, allocations: 117.8 kB / 484.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.1201, allocations: 7.938 kB / 484.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.194e-05/0.1201, allocations: 3.531 kB / 484.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.1201, allocations: 3.984 kB / 484.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1201, allocations: 4 kB / 484.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1201, allocations: 0 / 484.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.1203, allocations: 169.6 kB / 484.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1203, allocations: 0 / 484.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.969e-05/0.1204, allocations: 4 kB / 484.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1204, allocations: 0 / 484.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.1204, allocations: 3.938 kB / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.1204, allocations: 4 kB / 484.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1204, allocations: 0 / 484.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.1206, allocations: 155.4 kB / 484.7 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.332e-05/0.1207, allocations: 81.11 kB / 484.8 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.1207, allocations: 4 kB / 484.8 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.839e-05/0.1208, allocations: 7.984 kB / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.686e-05/0.1208, allocations: 7.984 kB / 484.8 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-06/0.1208, allocations: 0 / 484.8 MB, free: 232 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.547e-05/0.1209, allocations: 95.2 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1209, allocations: 4.031 kB / 484.9 MB, free: 132 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002201/0.1211, allocations: 8 kB / 484.9 MB, free: 124 kB / 350.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.0005242/0.1217, allocations: 0.6772 MB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.1218, allocations: 36.23 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1218, allocations: 4 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.731e-05/0.1219, allocations: 8 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.1221, allocations: 6.594 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.1234, allocations: 1.267 MB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.1238, allocations: 0.6807 MB / 487.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.972e-05/0.1238, allocations: 4 kB / 487.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.1239, allocations: 11.44 kB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1239, allocations: 3.938 kB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02138/0.1453, allocations: 1.501 MB / 489.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/7.754, allocations: 15.44 kB / 489.1 MB, free: 11.83 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1)