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.001335/0.001335, 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.001312/0.001312, 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.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2203/0.2203, allocations: 46.13 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.002235/0.002235, allocations: 81.05 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.118, allocations: 62.45 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002646/0.1207, allocations: 1.462 MB / 481.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008807/0.1216, allocations: 478.8 kB / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.88e-05/0.1216, allocations: 0 / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.507e-05/0.1217, allocations: 3.938 kB / 482.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.063e-05/0.1217, allocations: 3.938 kB / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.122, allocations: 27.91 kB / 482.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.907e-05/0.1221, allocations: 43.84 kB / 482.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.695e-05/0.1222, allocations: 11.98 kB / 482.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.1223, allocations: 19.94 kB / 482.2 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.911e-05/0.1224, allocations: 15.92 kB / 482.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.1224, allocations: 4 kB / 482.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.481e-05/0.1225, allocations: 4 kB / 482.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.218e-05/0.1225, allocations: 15.91 kB / 482.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.641e-05/0.1225, allocations: 11.94 kB / 482.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.1226, allocations: 39.89 kB / 482.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.1227, allocations: 4 kB / 482.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1227, allocations: 0 / 482.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1227, allocations: 0 / 482.3 MB, free: 3.004 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.0004679/0.1231, allocations: 349.9 kB / 482.7 MB, free: 2.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1232, allocations: 12.03 kB / 482.7 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.611e-05/0.1232, allocations: 30.75 kB / 482.7 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.1234, allocations: 20.77 kB / 482.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.1236, allocations: 180.2 kB / 482.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.982e-06/0.1236, allocations: 4.375 kB / 482.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.1236, allocations: 384 / 482.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.1238, allocations: 63.52 kB / 483 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.1238, allocations: 4 kB / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.1238, allocations: 4 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1238, allocations: 0 / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.009e-05/0.1239, allocations: 23.92 kB / 483 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003755/0.1243, allocations: 264.9 kB / 483.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.427e-05/0.1244, allocations: 34.45 kB / 483.3 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.284e-05/0.1244, allocations: 20.91 kB / 483.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.1245, allocations: 0 / 483.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.1245, allocations: 30.56 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.1245, allocations: 4 kB / 483.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002353/0.1247, allocations: 65.61 kB / 483.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.1248, allocations: 81.11 kB / 483.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.832e-05/0.1249, allocations: 105.8 kB / 483.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.1249, allocations: 33.7 kB / 483.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.676e-05/0.125, allocations: 84.12 kB / 483.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.125, allocations: 7.906 kB / 483.7 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.474e-05/0.125, allocations: 17.84 kB / 483.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1252, allocations: 322.8 kB / 484.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.633e-05/0.1253, allocations: 7.984 kB / 484.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.908e-05/0.1253, allocations: 29.69 kB / 484.1 MB, free: 1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.072e-05/0.1254, allocations: 28.78 kB / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1254, allocations: 0 / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001298/0.1256, allocations: 65.62 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.1256, allocations: 4 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1256, allocations: 4 kB / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.1256, allocations: 3.984 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.099e-05/0.1257, allocations: 0 / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1257, allocations: 4 kB / 484.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.687e-05/0.1257, allocations: 7.984 kB / 484.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.1258, allocations: 0 / 484.2 MB, free: 0.875 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 8.844e-05/0.1259, allocations: 121.8 kB / 484.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.503e-05/0.1259, allocations: 0 / 484.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.202e-05/0.1259, allocations: 7.531 kB / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1259, allocations: 0 / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1259, allocations: 0 / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1259, allocations: 3.938 kB / 484.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.1261, allocations: 169.6 kB / 484.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1261, allocations: 384 / 484.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.956e-05/0.1262, allocations: 7.984 kB / 484.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1262, allocations: 0 / 484.5 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1262, allocations: 3.938 kB / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1262, allocations: 7.938 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1262, allocations: 0 / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.1264, allocations: 151.4 kB / 484.7 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.1264, allocations: 85.11 kB / 484.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1265, allocations: 4 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.655e-05/0.1266, allocations: 7.984 kB / 484.8 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.1266, allocations: 12.02 kB / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.1266, allocations: 0 / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.456e-05/0.1267, allocations: 91.22 kB / 484.9 MB, free: 124 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1267, allocations: 0 / 484.9 MB, free: 124 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002187/0.1269, allocations: 8 kB / 484.9 MB, free: 116 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.0004923/0.1274, allocations: 0.6811 MB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001677/0.1276, allocations: 31.97 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.1276, allocations: 4 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.521e-05/0.1276, allocations: 11.94 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.1279, allocations: 4 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.1293, allocations: 1.258 MB / 486.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1296, allocations: 0.6768 MB / 487.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.403e-05/0.1297, allocations: 8.266 kB / 487.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.538e-05/0.1297, allocations: 11.44 kB / 487.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1297, allocations: 3.938 kB / 487.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/0.152, allocations: 1.515 MB / 489.1 MB, free: 11.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.002/8.154, allocations: 4.062 kB / 489.1 MB, free: 11.82 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1)