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.00124/0.00124, allocations: 99.03 kB / 17 MB, free: 6.398 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.001583/0.001584, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.451/1.451, allocations: 223.3 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2301/0.2301, allocations: 44.23 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 8 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1249, allocations: 61.93 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001435/0.1264, allocations: 1.143 MB / 472.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005837/0.127, allocations: 395.5 kB / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.783e-05/0.127, allocations: 3.938 kB / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.424e-05/0.1271, allocations: 0 / 473.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.559e-05/0.1271, allocations: 7.938 kB / 473.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.1273, allocations: 11.92 kB / 473.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.838e-05/0.1274, allocations: 31.91 kB / 473.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.647e-05/0.1274, allocations: 8 kB / 473.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.87e-05/0.1275, allocations: 19.92 kB / 473.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.926e-05/0.1276, allocations: 15.92 kB / 473.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.1276, allocations: 0 / 473.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.057e-05/0.1276, allocations: 4 kB / 473.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.1276, allocations: 3.984 kB / 473.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.137e-05/0.1277, allocations: 29.64 kB / 473.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.025e-05/0.1278, allocations: 27.89 kB / 473.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1278, allocations: 0 / 473.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1278, allocations: 0 / 473.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1278, allocations: 4 kB / 473.3 MB, free: 11.92 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.0004258/0.1282, allocations: 347.5 kB / 473.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1283, allocations: 8.031 kB / 473.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.578e-05/0.1283, allocations: 30.56 kB / 473.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.405e-05/0.1283, allocations: 4 kB / 473.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.1284, allocations: 170.9 kB / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.195e-06/0.1285, allocations: 0 / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.1285, allocations: 7.953 kB / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001541/0.1286, allocations: 67.33 kB / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1287, allocations: 0 / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/0.1287, allocations: 0 / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1287, allocations: 0 / 474 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.311e-05/0.1288, allocations: 23.98 kB / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003825/0.1292, allocations: 264.9 kB / 474.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.15e-05/0.1292, allocations: 30.58 kB / 474.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.807e-05/0.1293, allocations: 24.84 kB / 474.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.1293, allocations: 4 kB / 474.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.1294, allocations: 34.56 kB / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.1294, allocations: 0 / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002266/0.1296, allocations: 65.67 kB / 474.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.1297, allocations: 77.23 kB / 474.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.338e-05/0.1298, allocations: 113.8 kB / 474.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.1298, allocations: 25.7 kB / 474.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.633e-05/0.1298, allocations: 92.05 kB / 474.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.1298, allocations: 3.984 kB / 474.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-06/0.1299, allocations: 4 kB / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.13, allocations: 314.8 kB / 475 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.562e-05/0.13, allocations: 15.98 kB / 475 MB, free: 9.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.95e-05/0.1301, allocations: 29.72 kB / 475.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.283e-05/0.1302, allocations: 11.98 kB / 475.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1302, allocations: 7.891 kB / 475.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001218/0.1303, allocations: 65.59 kB / 475.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1303, allocations: 7.984 kB / 475.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.1303, allocations: 7.969 kB / 475.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.1303, allocations: 0 / 475.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.603e-05/0.1304, allocations: 4 kB / 475.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1304, allocations: 0 / 475.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.699e-05/0.1305, allocations: 16.12 kB / 475.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.1305, allocations: 3.938 kB / 475.2 MB, free: 9.828 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 ($PRE.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.058e-05/0.1306, allocations: 114.4 kB / 475.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.1306, allocations: 11.95 kB / 475.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.345e-05/0.1307, allocations: 7.484 kB / 475.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1307, allocations: 0 / 475.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1307, allocations: 4 kB / 475.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1307, allocations: 3.984 kB / 475.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.1309, allocations: 161.7 kB / 475.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1309, allocations: 0 / 475.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.006e-05/0.1309, allocations: 11.94 kB / 475.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1309, allocations: 0 / 475.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.1309, allocations: 4 kB / 475.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1309, allocations: 4 kB / 475.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1309, allocations: 4 kB / 475.5 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001661/0.1311, allocations: 151.4 kB / 475.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-05/0.1312, allocations: 77.11 kB / 475.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.1312, allocations: 11.89 kB / 475.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.1313, allocations: 20.02 kB / 475.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.1313, allocations: 3.984 kB / 475.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.1313, allocations: 4 kB / 475.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.495e-05/0.1314, allocations: 87.27 kB / 475.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1314, allocations: 0 / 475.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000208/0.1316, allocations: 8 kB / 475.9 MB, free: 9.059 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004656/0.1321, allocations: 0.6812 MB / 476.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.1322, allocations: 31.92 kB / 476.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1322, allocations: 0 / 476.6 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.453e-05/0.1323, allocations: 20.03 kB / 476.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.1325, allocations: 3.953 kB / 476.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004067/0.1329, allocations: 170.2 kB / 476.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.1332, allocations: 0.6776 MB / 477.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.033e-05/0.1332, allocations: 12 kB / 477.5 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.782e-05/0.1333, allocations: 11.42 kB / 477.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1333, allocations: 0 / 477.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01169/0.145, allocations: 1.207 MB / 478.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/0.1452, allocations: 163.4 kB / 478.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/1.92, allocations: 0 / 478.8 MB, free: 6.02 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat