Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001583/0.00159, allocations: 180.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001414/0.001414, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2824/0.2824, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.901e-05/3.931e-05, allocations: 7.938 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1192, allocations: 58.84 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4996/0.6189, allocations: 85.05 MB / 0.5559 GB, free: 2.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.6192, allocations: 59.94 kB / 0.556 GB, free: 2.406 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003677/0.6229, allocations: 0.9423 MB / 0.5569 GB, free: 1.566 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6229, allocations: 3.938 kB / 0.5569 GB, free: 1.562 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.623, allocations: 0 / 0.5569 GB, free: 1.562 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.000387/0.6234, allocations: 349.6 kB / 0.5572 GB, free: 1.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.6234, allocations: 8.031 kB / 0.5572 GB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.688e-05/0.6235, allocations: 30.56 kB / 0.5573 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.6235, allocations: 4.625 kB / 0.5573 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.6236, allocations: 170.9 kB / 0.5574 GB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.6236, allocations: 7.188 kB / 0.5575 GB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.6237, allocations: 0 / 0.5575 GB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001726/0.6239, allocations: 50.53 kB / 0.5575 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.6239, allocations: 0 / 0.5575 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.6239, allocations: 4 kB / 0.5575 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.6239, allocations: 3.984 kB / 0.5575 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.58e-05/0.624, allocations: 18.25 kB / 0.5575 GB, free: 0.8398 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000436/0.6244, allocations: 258.3 kB / 0.5578 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.351e-05/0.6245, allocations: 29.88 kB / 0.5578 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.773e-05/0.6246, allocations: 16.11 kB / 0.5578 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.6246, allocations: 3.984 kB / 0.5578 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.6247, allocations: 33.75 kB / 0.5579 GB, free: 464 kB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.814e-06/0.6247, allocations: 0 / 0.5579 GB, free: 464 kB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001858/0.6249, allocations: 44.83 kB / 0.5579 GB, free: 416 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.6249, allocations: 81.09 kB / 0.558 GB, free: 316 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.46e-05/0.625, allocations: 100.7 kB / 0.5581 GB, free: 212 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.625, allocations: 33.73 kB / 0.5581 GB, free: 172 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.57e-05/0.6251, allocations: 153.8 kB / 0.5582 GB, free: 20 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.6251, allocations: 3.906 kB / 0.5583 GB, free: 16 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.6251, allocations: 0 / 0.5583 GB, free: 16 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.6253, allocations: 322.5 kB / 0.5586 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.017e-05/0.6254, allocations: 11.12 kB / 0.5586 GB, free: 15.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.564e-05/0.6254, allocations: 16.97 kB / 0.5586 GB, free: 15.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.334e-05/0.6255, allocations: 10.64 kB / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.6255, allocations: 4.031 kB / 0.5586 GB, free: 15.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001385/0.6257, allocations: 54.91 kB / 0.5587 GB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.6257, allocations: 11.44 kB / 0.5587 GB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.6257, allocations: 0 / 0.5587 GB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.6257, allocations: 0 / 0.5587 GB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.6259, allocations: 4 kB / 0.5587 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.6259, allocations: 3.984 kB / 0.5587 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.626, allocations: 8 kB / 0.5587 GB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.626, allocations: 4 kB / 0.5587 GB, free: 15.58 MB / 378.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 0.0001021/0.6261, allocations: 114.5 kB / 0.5588 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.6262, allocations: 7.891 kB / 0.5588 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/0.6262, allocations: 14.47 kB / 0.5588 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.6263, allocations: 0 / 0.5588 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.6263, allocations: 0 / 0.5588 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.6263, allocations: 0 / 0.5588 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002246/0.6265, allocations: 160.9 kB / 0.559 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.6265, allocations: 4 kB / 0.559 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.345e-05/0.6266, allocations: 11.06 kB / 0.559 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.6266, allocations: 3.938 kB / 0.559 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.6267, allocations: 2.062 kB / 0.559 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.6267, allocations: 0 / 0.559 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.6267, allocations: 3.984 kB / 0.559 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.6269, allocations: 135.1 kB / 0.5591 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.008e-05/0.6269, allocations: 85 kB / 0.5592 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.627, allocations: 7.031 kB / 0.5592 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.6271, allocations: 12 kB / 0.5592 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.282e-05/0.6272, allocations: 7.984 kB / 0.5592 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.6272, allocations: 3.984 kB / 0.5592 GB, free: 14.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.524e-05/0.6273, allocations: 86.28 kB / 0.5593 GB, free: 14.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6273, allocations: 0 / 0.5593 GB, free: 14.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002779/0.6276, allocations: 4 kB / 0.5593 GB, free: 14.86 MB / 378.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.000569/0.6282, allocations: 0.6776 MB / 0.56 GB, free: 14.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001364/0.6283, allocations: 18.5 kB / 0.56 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.6284, allocations: 0 / 0.56 GB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.404e-05/0.6284, allocations: 8 kB / 0.56 GB, free: 14.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.6286, allocations: 7.297 kB / 0.56 GB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004761/0.6291, allocations: 127.4 kB / 0.5601 GB, free: 13.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.6294, allocations: 0.6809 MB / 0.5608 GB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.386e-05/0.6295, allocations: 17.73 kB / 0.5608 GB, free: 13.26 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.6295, allocations: 0 / 0.5608 GB, free: 13.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.434/3.063, allocations: 0.8633 MB / 0.5617 GB, free: 12.41 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat