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.001604/0.001604, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.549/1.549, allocations: 221.3 MB / 236 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 102.1 kB / 287 MB, free: 252 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2293/0.2293, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.969e-05/2.972e-05, allocations: 224 / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1416, allocations: 61.92 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4468/0.5884, allocations: 86.13 MB / 0.5859 GB, free: 3.129 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.5887, allocations: 56.75 kB / 0.586 GB, free: 3.074 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002896/0.5916, allocations: 0.9829 MB / 0.5869 GB, free: 2.105 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5916, allocations: 0 / 0.5869 GB, free: 2.105 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.5916, allocations: 4 kB / 0.5869 GB, free: 2.102 MB / 394.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.0003433/0.592, allocations: 342.5 kB / 0.5873 GB, free: 1.723 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.592, allocations: 8.031 kB / 0.5873 GB, free: 1.715 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.5921, allocations: 38.5 kB / 0.5873 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.5921, allocations: 3.938 kB / 0.5873 GB, free: 1.664 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.5922, allocations: 174.9 kB / 0.5875 GB, free: 1.453 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.5922, allocations: 0 / 0.5875 GB, free: 1.453 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.5923, allocations: 7.953 kB / 0.5875 GB, free: 1.445 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.5924, allocations: 55.41 kB / 0.5875 GB, free: 1.379 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.5924, allocations: 4 kB / 0.5875 GB, free: 1.375 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.5925, allocations: 0 / 0.5875 GB, free: 1.375 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.5925, allocations: 0 / 0.5875 GB, free: 1.375 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.609e-05/0.5925, allocations: 8 kB / 0.5875 GB, free: 1.367 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004019/0.5929, allocations: 272.8 kB / 0.5878 GB, free: 1.051 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.394e-05/0.593, allocations: 26.56 kB / 0.5878 GB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.707e-05/0.593, allocations: 12.92 kB / 0.5878 GB, free: 1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.5931, allocations: 4 kB / 0.5878 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.5931, allocations: 30.56 kB / 0.5879 GB, free: 0.957 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.5931, allocations: 0 / 0.5879 GB, free: 0.957 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001617/0.5933, allocations: 49.62 kB / 0.5879 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.5933, allocations: 81.11 kB / 0.588 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.422e-05/0.5934, allocations: 101 kB / 0.5881 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.5935, allocations: 29.7 kB / 0.5881 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/0.5935, allocations: 88.05 kB / 0.5882 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.574e-05/0.5935, allocations: 6.953 kB / 0.5882 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-06/0.5935, allocations: 0 / 0.5882 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.5937, allocations: 310.8 kB / 0.5885 GB, free: 264 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.533e-05/0.5937, allocations: 16.02 kB / 0.5885 GB, free: 248 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.313e-05/0.5937, allocations: 21.72 kB / 0.5885 GB, free: 220 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.247e-05/0.5938, allocations: 4 kB / 0.5885 GB, free: 216 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5938, allocations: 0 / 0.5885 GB, free: 216 kB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.755e-05/0.5939, allocations: 61.48 kB / 0.5886 GB, free: 148 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.5939, allocations: 8 kB / 0.5886 GB, free: 140 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.5939, allocations: 0 / 0.5886 GB, free: 140 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.5939, allocations: 0 / 0.5886 GB, free: 140 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.926e-05/0.594, allocations: 8.031 kB / 0.5886 GB, free: 132 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.594, allocations: 0 / 0.5886 GB, free: 132 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.994e-05/0.5941, allocations: 11.98 kB / 0.5886 GB, free: 120 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.5941, allocations: 0 / 0.5886 GB, free: 120 kB / 394.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 () * 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.28e-05/0.5942, allocations: 105 kB / 0.5887 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.5942, allocations: 3.953 kB / 0.5887 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.5943, allocations: 15.64 kB / 0.5887 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.5943, allocations: 0 / 0.5887 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5943, allocations: 6.812 kB / 0.5888 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.5943, allocations: 0 / 0.5888 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.5945, allocations: 165.6 kB / 0.5889 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.5945, allocations: 0 / 0.5889 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.771e-05/0.5945, allocations: 4 kB / 0.5889 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.5945, allocations: 3.953 kB / 0.5889 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.5945, allocations: 0 / 0.5889 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.5946, allocations: 0 / 0.5889 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.5946, allocations: 3.828 kB / 0.5889 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001632/0.5947, allocations: 151.4 kB / 0.5891 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.5948, allocations: 85.09 kB / 0.5891 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.5948, allocations: 3.953 kB / 0.5892 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.867e-05/0.5949, allocations: 8 kB / 0.5892 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.595, allocations: 7.984 kB / 0.5892 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.595, allocations: 3.984 kB / 0.5892 GB, free: 15.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.969e-05/0.595, allocations: 91.31 kB / 0.5893 GB, free: 15.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.595, allocations: 0 / 0.5893 GB, free: 15.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002193/0.5953, allocations: 4 kB / 0.5893 GB, free: 15.38 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) * 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.0004052/0.5957, allocations: 0.6695 MB / 0.5899 GB, free: 14.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001006/0.5958, allocations: 16 kB / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.5958, allocations: 8.031 kB / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.294e-05/0.5958, allocations: 4 kB / 0.5899 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.596, allocations: 3.953 kB / 0.5899 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003526/0.5963, allocations: 103.1 kB / 0.59 GB, free: 14.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.5966, allocations: 0.6848 MB / 0.5907 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.385e-05/0.5967, allocations: 4.219 kB / 0.5907 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.547e-05/0.5967, allocations: 15.42 kB / 0.5907 GB, free: 13.78 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.5967, allocations: 4.062 kB / 0.5907 GB, free: 13.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01276/0.6095, allocations: 1.192 MB / 0.5919 GB, free: 12.69 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.6097, allocations: 132.9 kB / 0.592 GB, free: 12.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/2.168, allocations: 0 / 0.592 GB, free: 12.47 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