Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009759/0.000976, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001173/0.001173, allocations: 97.06 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2115/0.2115, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.949e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4396/0.5518, allocations: 86.52 MB / 0.5889 GB, free: 15.72 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001947/0.5521, allocations: 62.97 kB / 0.589 GB, free: 15.69 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003156/0.5553, allocations: 1.089 MB / 0.5901 GB, free: 14.74 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5553, allocations: 0 / 0.5901 GB, free: 14.74 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.5553, allocations: 0 / 0.5901 GB, free: 14.74 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.0003516/0.5557, allocations: 338.5 kB / 0.5904 GB, free: 14.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/0.5557, allocations: 11.97 kB / 0.5904 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001508/0.5559, allocations: 20.61 kB / 0.5904 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.556, allocations: 170.9 kB / 0.5906 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.556, allocations: 0 / 0.5906 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.5561, allocations: 1.5 kB / 0.5906 GB, free: 14.13 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.956e-05/0.5561, allocations: 11.94 kB / 0.5906 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.622e-05/0.5562, allocations: 51.16 kB / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-06/0.5563, allocations: 0 / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.5563, allocations: 3.938 kB / 0.5907 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.5563, allocations: 8 kB / 0.5907 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.5567, allocations: 249 kB / 0.5909 GB, free: 13.78 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.563e-05/0.5567, allocations: 22.27 kB / 0.5909 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.613e-05/0.5568, allocations: 12.73 kB / 0.5909 GB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.5568, allocations: 4 kB / 0.5909 GB, free: 13.74 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.521e-05/0.5568, allocations: 34.56 kB / 0.591 GB, free: 13.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 2.144e-06/0.5568, allocations: 0 / 0.591 GB, free: 13.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001493/0.557, allocations: 43.98 kB / 0.591 GB, free: 13.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.557, allocations: 81.05 kB / 0.5911 GB, free: 13.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.996e-05/0.5571, allocations: 96.94 kB / 0.5912 GB, free: 13.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.5571, allocations: 25.7 kB / 0.5912 GB, free: 13.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.277e-05/0.5572, allocations: 95.81 kB / 0.5913 GB, free: 13.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.5572, allocations: 7.938 kB / 0.5913 GB, free: 13.32 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.5572, allocations: 0 / 0.5913 GB, free: 13.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5573, allocations: 318.7 kB / 0.5916 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.894e-05/0.5574, allocations: 4 kB / 0.5916 GB, free: 13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.751e-05/0.5574, allocations: 25.64 kB / 0.5916 GB, free: 12.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.176e-05/0.5574, allocations: 8.031 kB / 0.5916 GB, free: 12.97 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.5574, allocations: 0 / 0.5916 GB, free: 12.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.256e-05/0.5575, allocations: 53.52 kB / 0.5917 GB, free: 12.92 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.5575, allocations: 8.031 kB / 0.5917 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.5576, allocations: 0 / 0.5917 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.5576, allocations: 0 / 0.5917 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.593e-05/0.5577, allocations: 7.938 kB / 0.5917 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.5577, allocations: 0 / 0.5917 GB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.341e-05/0.5577, allocations: 19.92 kB / 0.5917 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.5577, allocations: 0 / 0.5917 GB, free: 12.89 MB / 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 6.775e-05/0.5578, allocations: 108.9 kB / 0.5918 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.604e-05/0.5579, allocations: 45.5 kB / 0.5919 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.131e-05/0.5579, allocations: 0 / 0.5919 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.792e-05/0.558, allocations: 11.66 kB / 0.5919 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.558, allocations: 0 / 0.5919 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.558, allocations: 3.938 kB / 0.5919 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.558, allocations: 0 / 0.5919 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.5581, allocations: 142.1 kB / 0.592 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5581, allocations: 0 / 0.592 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.17e-05/0.5582, allocations: 7.984 kB / 0.592 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.5582, allocations: 8.031 kB / 0.592 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.5582, allocations: 0 / 0.592 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.5582, allocations: 0.7031 kB / 0.592 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.5582, allocations: 0 / 0.592 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.5584, allocations: 154.5 kB / 0.5922 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.5584, allocations: 77.11 kB / 0.5923 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.5584, allocations: 0 / 0.5923 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.156e-05/0.5585, allocations: 16.02 kB / 0.5923 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.88e-05/0.5586, allocations: 7.984 kB / 0.5923 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.5586, allocations: 0 / 0.5923 GB, free: 12.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.765e-05/0.5586, allocations: 87.47 kB / 0.5924 GB, free: 12.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5586, allocations: 0 / 0.5924 GB, free: 12.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002108/0.5589, allocations: 4 kB / 0.5924 GB, free: 12.17 MB / 394.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.0004022/0.5593, allocations: 0.6771 MB / 0.593 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.981e-05/0.5594, allocations: 23.42 kB / 0.5931 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5594, allocations: 0 / 0.5931 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.475e-05/0.5594, allocations: 11.88 kB / 0.5931 GB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.5596, allocations: 240 / 0.5931 GB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003617/0.5599, allocations: 89.5 kB / 0.5932 GB, free: 11.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.5602, allocations: 0.6924 MB / 0.5938 GB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.195e-05/0.5602, allocations: 0 / 0.5938 GB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.507e-05/0.5603, allocations: 19.25 kB / 0.5938 GB, free: 10.59 MB / 394.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5603, allocations: 0 / 0.5938 GB, free: 10.59 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01855/0.5789, allocations: 0.8784 MB / 0.5947 GB, free: 9.715 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.5791, allocations: 121.1 kB / 0.5948 GB, free: 9.527 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.453/2.032, allocations: 0 / 0.5948 GB, free: 9.527 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat