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.001163/0.001163, allocations: 197.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.2 MB / 245 MB, free: 5.785 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001092/0.001093, allocations: 108.2 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.403/0.403, allocations: 45.24 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003465, allocations: 8 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3924, allocations: 63.25 MB / 0.5193 GB, free: 37.47 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.5183, allocations: 87.27 MB / 0.6045 GB, free: 176 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.5186, allocations: 67.94 kB / 0.6046 GB, free: 112 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003164/0.5218, allocations: 1.084 MB / 0.6056 GB, free: 15.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.5218, allocations: 0 / 0.6056 GB, free: 15.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.5218, allocations: 0 / 0.6056 GB, free: 15.03 MB / 426.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.0004021/0.5222, allocations: 363.1 kB / 0.606 GB, free: 14.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/0.5223, allocations: 12.03 kB / 0.606 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.325e-05/0.5223, allocations: 30.56 kB / 0.606 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.5225, allocations: 15.98 kB / 0.606 GB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.5226, allocations: 170.9 kB / 0.6062 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.5227, allocations: 8 kB / 0.6062 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.5227, allocations: 4 kB / 0.6062 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.5229, allocations: 63.39 kB / 0.6062 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.5229, allocations: 0 / 0.6062 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.5229, allocations: 0 / 0.6062 GB, free: 14.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.5229, allocations: 7.922 kB / 0.6063 GB, free: 14.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.146e-05/0.523, allocations: 23.98 kB / 0.6063 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000409/0.5234, allocations: 272.8 kB / 0.6065 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.5235, allocations: 34.56 kB / 0.6066 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.5236, allocations: 0 / 0.6066 GB, free: 13.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.5236, allocations: 30.56 kB / 0.6066 GB, free: 13.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.5236, allocations: 0 / 0.6066 GB, free: 13.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002605/0.5239, allocations: 81.58 kB / 0.6067 GB, free: 13.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/0.5239, allocations: 77.11 kB / 0.6068 GB, free: 13.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.509e-05/0.524, allocations: 97 kB / 0.6068 GB, free: 13.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.5241, allocations: 29.7 kB / 0.6069 GB, free: 13.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.195e-05/0.5241, allocations: 88.12 kB / 0.607 GB, free: 13.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.5241, allocations: 3.906 kB / 0.607 GB, free: 13.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.847e-06/0.5242, allocations: 0 / 0.607 GB, free: 13.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5243, allocations: 326.9 kB / 0.6073 GB, free: 13.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.966e-05/0.5244, allocations: 11.98 kB / 0.6073 GB, free: 13.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.211e-05/0.5244, allocations: 25.7 kB / 0.6073 GB, free: 13.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.758e-05/0.5245, allocations: 12 kB / 0.6073 GB, free: 13.04 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5245, allocations: 4 kB / 0.6073 GB, free: 13.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001278/0.5246, allocations: 65.64 kB / 0.6074 GB, free: 12.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.5246, allocations: 4 kB / 0.6074 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.5247, allocations: 3.938 kB / 0.6074 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.5247, allocations: 4 kB / 0.6074 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.839e-05/0.5248, allocations: 4 kB / 0.6074 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.5248, allocations: 0 / 0.6074 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.119e-05/0.5248, allocations: 15.98 kB / 0.6074 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.5248, allocations: 4 kB / 0.6074 GB, free: 12.93 MB / 426.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 8.971e-05/0.5249, allocations: 113.8 kB / 0.6075 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.525, allocations: 3.906 kB / 0.6075 GB, free: 12.81 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.525, allocations: 15.52 kB / 0.6075 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.525, allocations: 0 / 0.6075 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.525, allocations: 0 / 0.6075 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.525, allocations: 0 / 0.6075 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.5252, allocations: 169.6 kB / 0.6077 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.5253, allocations: 0 / 0.6077 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.096e-05/0.5253, allocations: 8 kB / 0.6077 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.5253, allocations: 0 / 0.6077 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.5253, allocations: 0 / 0.6077 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.5253, allocations: 0 / 0.6077 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.5253, allocations: 3.984 kB / 0.6077 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001925/0.5255, allocations: 159.4 kB / 0.6079 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.5256, allocations: 81.11 kB / 0.6079 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.5256, allocations: 3.938 kB / 0.608 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.412e-05/0.5257, allocations: 11.98 kB / 0.608 GB, free: 12.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.5258, allocations: 7.984 kB / 0.608 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.5258, allocations: 4 kB / 0.608 GB, free: 12.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.683e-05/0.5258, allocations: 91.27 kB / 0.6081 GB, free: 12.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5258, allocations: 0 / 0.6081 GB, free: 12.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002119/0.5261, allocations: 15.94 kB / 0.6081 GB, free: 12.16 MB / 426.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.0005227/0.5266, allocations: 0.6851 MB / 0.6087 GB, free: 11.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.5268, allocations: 36.02 kB / 0.6088 GB, free: 11.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5268, allocations: 0 / 0.6088 GB, free: 11.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.024e-05/0.5268, allocations: 11.98 kB / 0.6088 GB, free: 11.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.527, allocations: 10.97 kB / 0.6088 GB, free: 11.39 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004686/0.5274, allocations: 170.4 kB / 0.609 GB, free: 11.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.5277, allocations: 0.6809 MB / 0.6096 GB, free: 10.48 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 3.657e-05/0.5278, allocations: 8.219 kB / 0.6096 GB, free: 10.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.5278, allocations: 15.42 kB / 0.6097 GB, free: 10.46 MB / 426.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5278, allocations: 0 / 0.6097 GB, free: 10.46 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01289/0.5407, allocations: 1.181 MB / 0.6108 GB, free: 9.383 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003011/0.5411, allocations: 161.8 kB / 0.611 GB, free: 9.141 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.446/1.988, allocations: 0 / 0.611 GB, free: 9.141 MB / 426.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