Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002137/0.002137, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.887/1.887, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 90.25 kB / 261.7 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2745/0.2745, allocations: 43.5 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.911e-05/1.915e-05, allocations: 0 / 418.3 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 58.86 MB / 477.2 MB, free: 1.566 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4009/0.5068, allocations: 84.38 MB / 0.5484 GB, free: 8.828 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001611/0.507, allocations: 68.44 kB / 0.5485 GB, free: 8.824 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002457/0.5095, allocations: 0.9282 MB / 0.5494 GB, free: 8.484 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5095, allocations: 0 / 0.5494 GB, free: 8.484 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.904e-06/0.5095, allocations: 7.656 kB / 0.5494 GB, free: 8.48 MB / 362.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.0002944/0.5098, allocations: 338.6 kB / 0.5497 GB, free: 8.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.5099, allocations: 11.69 kB / 0.5497 GB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.5099, allocations: 4.531 kB / 0.5497 GB, free: 8.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.338e-05/0.51, allocations: 178.3 kB / 0.5499 GB, free: 7.922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-06/0.51, allocations: 7.75 kB / 0.5499 GB, free: 7.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.5101, allocations: 0 / 0.5499 GB, free: 7.918 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.293e-05/0.5101, allocations: 14.06 kB / 0.5499 GB, free: 7.918 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.41e-05/0.5102, allocations: 45.33 kB / 0.55 GB, free: 7.871 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.5102, allocations: 0 / 0.55 GB, free: 7.871 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.5103, allocations: 7.656 kB / 0.55 GB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.5103, allocations: 4 kB / 0.55 GB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003251/0.5106, allocations: 242.9 kB / 0.5502 GB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.961e-05/0.5107, allocations: 26.23 kB / 0.5502 GB, free: 7.605 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.321e-05/0.5107, allocations: 4.859 kB / 0.5502 GB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.5107, allocations: 3.969 kB / 0.5502 GB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.5108, allocations: 39.25 kB / 0.5503 GB, free: 7.555 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.5108, allocations: 0 / 0.5503 GB, free: 7.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001585/0.5109, allocations: 42.42 kB / 0.5503 GB, free: 7.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.511, allocations: 83.61 kB / 0.5504 GB, free: 7.426 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.747e-05/0.511, allocations: 96.03 kB / 0.5505 GB, free: 7.336 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.5111, allocations: 25.7 kB / 0.5505 GB, free: 7.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.74e-05/0.5111, allocations: 86.17 kB / 0.5506 GB, free: 7.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.5111, allocations: 11.84 kB / 0.5506 GB, free: 7.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.5111, allocations: 0 / 0.5506 GB, free: 7.215 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.626e-05/0.5112, allocations: 320.8 kB / 0.5509 GB, free: 6.898 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.903e-05/0.5112, allocations: 10.81 kB / 0.5509 GB, free: 6.898 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.394e-05/0.5112, allocations: 17 kB / 0.5509 GB, free: 6.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.098e-05/0.5113, allocations: 6.5 kB / 0.551 GB, free: 6.883 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.5113, allocations: 0 / 0.551 GB, free: 6.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.532e-05/0.5114, allocations: 54.33 kB / 0.551 GB, free: 6.848 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.5114, allocations: 7.875 kB / 0.551 GB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.5114, allocations: 3.938 kB / 0.551 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.5114, allocations: 0 / 0.551 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-05/0.5115, allocations: 6.719 kB / 0.551 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.5115, allocations: 0 / 0.551 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.061e-05/0.5116, allocations: 14.55 kB / 0.551 GB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.5116, allocations: 1.5 kB / 0.551 GB, free: 6.84 MB / 362.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 5.721e-05/0.5116, allocations: 112.9 kB / 0.5511 GB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.502e-05/0.5117, allocations: 43.53 kB / 0.5512 GB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.5118, allocations: 3.875 kB / 0.5512 GB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.5118, allocations: 3.969 kB / 0.5512 GB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.5118, allocations: 2.766 kB / 0.5512 GB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.5118, allocations: 0 / 0.5512 GB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.5118, allocations: 0 / 0.5512 GB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000109/0.5119, allocations: 146.4 kB / 0.5513 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.5119, allocations: 0 / 0.5513 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.327e-05/0.512, allocations: 10.52 kB / 0.5513 GB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.512, allocations: 7.969 kB / 0.5514 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.512, allocations: 0.875 kB / 0.5514 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.512, allocations: 0 / 0.5514 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.512, allocations: 0 / 0.5514 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.241e-05/0.5121, allocations: 141.8 kB / 0.5515 GB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.222e-05/0.5122, allocations: 83.69 kB / 0.5516 GB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.5122, allocations: 0 / 0.5516 GB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.5123, allocations: 18.72 kB / 0.5516 GB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.737e-05/0.5123, allocations: 10.2 kB / 0.5516 GB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.5123, allocations: 0 / 0.5516 GB, free: 6.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.865e-05/0.5124, allocations: 93.06 kB / 0.5517 GB, free: 6.199 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5124, allocations: 0 / 0.5517 GB, free: 6.199 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002132/0.5126, allocations: 4.281 kB / 0.5517 GB, free: 6.195 MB / 362.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.0002467/0.5129, allocations: 0.6772 MB / 0.5524 GB, free: 5.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.996e-05/0.513, allocations: 19.06 kB / 0.5524 GB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.513, allocations: 0 / 0.5524 GB, free: 5.488 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.079e-05/0.513, allocations: 7.062 kB / 0.5524 GB, free: 5.484 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.5131, allocations: 0 / 0.5524 GB, free: 5.484 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003259/0.5135, allocations: 95.17 kB / 0.5525 GB, free: 5.363 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001169/0.5136, allocations: 0.6902 MB / 0.5531 GB, free: 4.652 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.063e-05/0.5136, allocations: 0 / 0.5531 GB, free: 4.652 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.5137, allocations: 17.48 kB / 0.5532 GB, free: 4.641 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5137, allocations: 0 / 0.5532 GB, free: 4.641 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.5327, allocations: 0.8764 MB / 0.554 GB, free: 3.848 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.533, allocations: 119.2 kB / 0.5541 GB, free: 3.656 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.441/1.974, allocations: 0 / 0.5541 GB, free: 3.656 MB / 362.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat