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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009993/0.0009992, allocations: 176.9 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008604/0.0008604, allocations: 94.31 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3491/0.3491, allocations: 44.23 MB / 387.5 MB, free: 38.78 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003171, allocations: 8 kB / 460 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3353, allocations: 61.89 MB / 0.5096 GB, free: 38.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.4359, allocations: 86.21 MB / 0.5938 GB, free: 8.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.4361, allocations: 67.92 kB / 0.5939 GB, free: 8.867 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002673/0.4388, allocations: 0.9866 MB / 0.5948 GB, free: 7.883 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4388, allocations: 0 / 0.5948 GB, free: 7.883 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.4388, allocations: 0 / 0.5948 GB, free: 7.883 MB / 410.7 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.0003462/0.4392, allocations: 355.2 kB / 0.5952 GB, free: 7.488 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.4392, allocations: 8.031 kB / 0.5952 GB, free: 7.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.652e-05/0.4392, allocations: 34.55 kB / 0.5952 GB, free: 7.438 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.936e-05/0.4393, allocations: 11.91 kB / 0.5952 GB, free: 7.426 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.4394, allocations: 163 kB / 0.5954 GB, free: 7.227 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.4394, allocations: 4 kB / 0.5954 GB, free: 7.223 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.4394, allocations: 7.953 kB / 0.5954 GB, free: 7.215 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.4396, allocations: 63.39 kB / 0.5955 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.4396, allocations: 0 / 0.5955 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-06/0.4396, allocations: 0 / 0.5955 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.106e-06/0.4396, allocations: 0 / 0.5955 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.552e-05/0.4397, allocations: 31.92 kB / 0.5955 GB, free: 7.109 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00036/0.4401, allocations: 268.9 kB / 0.5958 GB, free: 6.797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.205e-05/0.4402, allocations: 30.58 kB / 0.5958 GB, free: 6.758 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.4402, allocations: 4 kB / 0.5958 GB, free: 6.754 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.4402, allocations: 30.56 kB / 0.5958 GB, free: 6.715 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 2.565e-06/0.4403, allocations: 0 / 0.5958 GB, free: 6.715 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002336/0.4405, allocations: 73.58 kB / 0.5959 GB, free: 6.637 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.4405, allocations: 77.11 kB / 0.596 GB, free: 6.543 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.947e-05/0.4406, allocations: 105.1 kB / 0.5961 GB, free: 6.434 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.4407, allocations: 29.7 kB / 0.5961 GB, free: 6.398 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.131e-05/0.4407, allocations: 88.12 kB / 0.5962 GB, free: 6.309 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.4407, allocations: 7.906 kB / 0.5962 GB, free: 6.301 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.4407, allocations: 3.938 kB / 0.5962 GB, free: 6.297 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.034e-05/0.4408, allocations: 314.8 kB / 0.5965 GB, free: 5.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.181e-05/0.4409, allocations: 15.98 kB / 0.5965 GB, free: 5.965 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.157e-05/0.4409, allocations: 29.7 kB / 0.5965 GB, free: 5.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.742e-05/0.441, allocations: 19.92 kB / 0.5965 GB, free: 5.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.441, allocations: 0 / 0.5965 GB, free: 5.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001232/0.4411, allocations: 65.62 kB / 0.5966 GB, free: 5.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.4412, allocations: 5.875 kB / 0.5966 GB, free: 5.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.4412, allocations: 0 / 0.5966 GB, free: 5.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.4412, allocations: 4.031 kB / 0.5966 GB, free: 5.832 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.246e-05/0.4413, allocations: 8 kB / 0.5966 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.4413, allocations: 0 / 0.5966 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.934e-05/0.4413, allocations: 11.98 kB / 0.5966 GB, free: 5.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.4413, allocations: 0 / 0.5966 GB, free: 5.812 MB / 410.7 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 7.477e-05/0.4414, allocations: 115.8 kB / 0.5967 GB, free: 5.691 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.4415, allocations: 7.859 kB / 0.5968 GB, free: 5.684 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.829e-05/0.4415, allocations: 11.53 kB / 0.5968 GB, free: 5.672 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.4415, allocations: 7.922 kB / 0.5968 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.4415, allocations: 0 / 0.5968 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.4415, allocations: 0 / 0.5968 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.4417, allocations: 161.7 kB / 0.5969 GB, free: 5.457 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4417, allocations: 3.938 kB / 0.5969 GB, free: 5.453 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.891e-05/0.4417, allocations: 4 kB / 0.5969 GB, free: 5.449 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.4417, allocations: 7.953 kB / 0.5969 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.742e-06/0.4417, allocations: 0 / 0.5969 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4417, allocations: 0 / 0.5969 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4417, allocations: 4 kB / 0.5969 GB, free: 5.438 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.4419, allocations: 151.5 kB / 0.5971 GB, free: 5.273 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.092e-05/0.442, allocations: 77.11 kB / 0.5972 GB, free: 5.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.442, allocations: 7.953 kB / 0.5972 GB, free: 5.172 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.948e-05/0.4421, allocations: 20.02 kB / 0.5972 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.4421, allocations: 7.984 kB / 0.5972 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.4421, allocations: 0 / 0.5972 GB, free: 5.145 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.848e-05/0.4422, allocations: 87.27 kB / 0.5973 GB, free: 5.059 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4422, allocations: 0 / 0.5973 GB, free: 5.059 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002008/0.4424, allocations: 8 kB / 0.5973 GB, free: 5.051 MB / 410.7 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.000397/0.4428, allocations: 0.685 MB / 0.598 GB, free: 4.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001362/0.443, allocations: 27.98 kB / 0.598 GB, free: 4.312 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.443, allocations: 4 kB / 0.598 GB, free: 4.309 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.23e-05/0.443, allocations: 19.97 kB / 0.598 GB, free: 4.289 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.4432, allocations: 7.891 kB / 0.598 GB, free: 4.281 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003862/0.4436, allocations: 174.1 kB / 0.5982 GB, free: 4.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.4438, allocations: 0.6848 MB / 0.5988 GB, free: 3.359 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.836e-05/0.4438, allocations: 0 / 0.5988 GB, free: 3.359 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.4439, allocations: 15.5 kB / 0.5989 GB, free: 3.344 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4439, allocations: 0 / 0.5989 GB, free: 3.344 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0107/0.4546, allocations: 1.19 MB / 0.6 GB, free: 2.262 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/0.4548, allocations: 166.5 kB / 0.6002 GB, free: 2.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.458/1.912, allocations: 4.062 kB / 0.6002 GB, free: 2.016 MB / 410.7 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