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.002227/0.002227, allocations: 185.8 kB / 16.41 MB, free: 5.723 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.337/2.337, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001201/0.0012, allocations: 90.14 kB / 270.9 MB, free: 8.375 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.5257/0.5257, allocations: 43.55 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000489/0.0004888, allocations: 12 kB / 431.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1363, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4644/0.6008, allocations: 85.13 MB / 0.562 GB, free: 1.426 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.6011, allocations: 63.97 kB / 0.562 GB, free: 1.363 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003619/0.6047, allocations: 0.943 MB / 0.5629 GB, free: 444 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6048, allocations: 0 / 0.5629 GB, free: 444 kB / 378.7 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.6048, allocations: 0 / 0.5629 GB, free: 444 kB / 378.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.0003759/0.6052, allocations: 359.6 kB / 0.5633 GB, free: 40 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.6052, allocations: 12.03 kB / 0.5633 GB, free: 28 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.488e-05/0.6053, allocations: 30.56 kB / 0.5633 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.6053, allocations: 7.438 kB / 0.5633 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.6055, allocations: 167.6 kB / 0.5635 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.6055, allocations: 0 / 0.5635 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.6056, allocations: 4 kB / 0.5635 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002155/0.6058, allocations: 59.41 kB / 0.5635 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.6058, allocations: 0 / 0.5635 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.6058, allocations: 7.938 kB / 0.5636 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.6058, allocations: 0 / 0.5636 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001557/0.606, allocations: 29 kB / 0.5636 GB, free: 15.67 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005093/0.6065, allocations: 264.9 kB / 0.5638 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.6067, allocations: 38.55 kB / 0.5639 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.6067, allocations: 3.719 kB / 0.5639 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.6068, allocations: 42.5 kB / 0.5639 GB, free: 15.27 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/0.6068, allocations: 0 / 0.5639 GB, free: 15.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003803/0.6072, allocations: 69.64 kB / 0.564 GB, free: 15.19 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.6072, allocations: 77.11 kB / 0.5641 GB, free: 15.1 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.6074, allocations: 102.8 kB / 0.5642 GB, free: 14.99 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.6074, allocations: 26.36 kB / 0.5642 GB, free: 14.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.068e-05/0.6075, allocations: 162.7 kB / 0.5643 GB, free: 14.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.6075, allocations: 3.906 kB / 0.5643 GB, free: 14.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.6075, allocations: 0 / 0.5643 GB, free: 14.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.6077, allocations: 318.8 kB / 0.5646 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.248e-05/0.6078, allocations: 11.98 kB / 0.5647 GB, free: 14.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.6079, allocations: 29.7 kB / 0.5647 GB, free: 14.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.123e-05/0.608, allocations: 23.34 kB / 0.5647 GB, free: 14.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.608, allocations: 0 / 0.5647 GB, free: 14.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002193/0.6082, allocations: 58.55 kB / 0.5648 GB, free: 14.35 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.6083, allocations: 8 kB / 0.5648 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.6083, allocations: 0 / 0.5648 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.6083, allocations: 0 / 0.5648 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.6084, allocations: 4 kB / 0.5648 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.6085, allocations: 4 kB / 0.5648 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.6086, allocations: 15.98 kB / 0.5648 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.6086, allocations: 0 / 0.5648 GB, free: 14.32 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 () * 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 0.0001168/0.6087, allocations: 119.1 kB / 0.5649 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.672e-05/0.6088, allocations: 4 kB / 0.5649 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.254e-05/0.6088, allocations: 11.52 kB / 0.5649 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.6088, allocations: 0 / 0.5649 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.6088, allocations: 0 / 0.5649 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.6089, allocations: 7.938 kB / 0.5649 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002158/0.6091, allocations: 165.6 kB / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6091, allocations: 0 / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.675e-05/0.6092, allocations: 4 kB / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.6092, allocations: 0 / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.6092, allocations: 3.125 kB / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.6092, allocations: 3.062 kB / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.6092, allocations: 0 / 0.5651 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000275/0.6095, allocations: 167.4 kB / 0.5653 GB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-05/0.6096, allocations: 77.11 kB / 0.5653 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.6096, allocations: 0 / 0.5653 GB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.6097, allocations: 11.98 kB / 0.5653 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.722e-05/0.6098, allocations: 7.984 kB / 0.5653 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.6098, allocations: 4.031 kB / 0.5653 GB, free: 13.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.724e-05/0.6099, allocations: 91.27 kB / 0.5654 GB, free: 13.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6099, allocations: 0 / 0.5654 GB, free: 13.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002887/0.6102, allocations: 4 kB / 0.5654 GB, free: 13.57 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) * 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.0006252/0.6109, allocations: 0.6953 MB / 0.5661 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002287/0.6111, allocations: 31.98 kB / 0.5661 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.6111, allocations: 0.75 kB / 0.5661 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.632e-05/0.6112, allocations: 15.92 kB / 0.5662 GB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/0.6114, allocations: 9.562 kB / 0.5662 GB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000574/0.612, allocations: 190.8 kB / 0.5664 GB, free: 12.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.6123, allocations: 0.6887 MB / 0.567 GB, free: 11.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.179e-05/0.6124, allocations: 15.44 kB / 0.567 GB, free: 11.84 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6124, allocations: 0 / 0.567 GB, free: 11.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.752/3.365, allocations: 0.8616 MB / 0.5679 GB, free: 10.98 MB / 394.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