Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 171.2 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00088/0.00088, allocations: 91.97 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2217/0.2217, allocations: 44.15 MB / 376.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.722e-05/2.725e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1505, allocations: 61.91 MB / 0.4948 GB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.472/0.6225, allocations: 85.46 MB / 0.5782 GB, free: 10.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002156/0.6228, allocations: 59.97 kB / 0.5783 GB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003097/0.6259, allocations: 0.9891 MB / 0.5792 GB, free: 9.863 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6259, allocations: 0 / 0.5792 GB, free: 9.863 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.6259, allocations: 0 / 0.5792 GB, free: 9.863 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.0004034/0.6264, allocations: 338.5 kB / 0.5796 GB, free: 9.488 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.6264, allocations: 11.98 kB / 0.5796 GB, free: 9.477 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.6265, allocations: 4 kB / 0.5796 GB, free: 9.473 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.6266, allocations: 178.9 kB / 0.5798 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.6267, allocations: 0 / 0.5798 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-06/0.6267, allocations: 0 / 0.5798 GB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.728e-05/0.6268, allocations: 18.08 kB / 0.5798 GB, free: 9.242 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.6269, allocations: 51.34 kB / 0.5798 GB, free: 9.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.6269, allocations: 0 / 0.5798 GB, free: 9.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.6269, allocations: 4.562 kB / 0.5798 GB, free: 9.176 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.6269, allocations: 0 / 0.5798 GB, free: 9.176 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.6274, allocations: 245.5 kB / 0.5801 GB, free: 8.898 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.994e-05/0.6275, allocations: 22.53 kB / 0.5801 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.452e-05/0.6275, allocations: 12.92 kB / 0.5801 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.6275, allocations: 3.938 kB / 0.5801 GB, free: 8.848 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.6276, allocations: 42.5 kB / 0.5801 GB, free: 8.797 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.6276, allocations: 0 / 0.5801 GB, free: 8.797 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001519/0.6277, allocations: 41.69 kB / 0.5802 GB, free: 8.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.6278, allocations: 77.11 kB / 0.5802 GB, free: 8.656 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.485e-05/0.6279, allocations: 97 kB / 0.5803 GB, free: 8.555 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.6279, allocations: 25.7 kB / 0.5804 GB, free: 8.523 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.068e-05/0.628, allocations: 96.03 kB / 0.5805 GB, free: 8.426 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.628, allocations: 0 / 0.5805 GB, free: 8.426 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/0.628, allocations: 3.828 kB / 0.5805 GB, free: 8.426 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.6282, allocations: 318.9 kB / 0.5808 GB, free: 8.105 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.38e-05/0.6282, allocations: 8 kB / 0.5808 GB, free: 8.098 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.675e-05/0.6282, allocations: 25.7 kB / 0.5808 GB, free: 8.066 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.281e-05/0.6283, allocations: 7.938 kB / 0.5808 GB, free: 8.059 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.6283, allocations: 0 / 0.5808 GB, free: 8.059 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.485e-05/0.6283, allocations: 49.59 kB / 0.5809 GB, free: 8.004 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.6284, allocations: 7.953 kB / 0.5809 GB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.6284, allocations: 0 / 0.5809 GB, free: 7.996 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.6284, allocations: 4.172 kB / 0.5809 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.569e-05/0.6285, allocations: 4 kB / 0.5809 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.6285, allocations: 0 / 0.5809 GB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.27e-05/0.6286, allocations: 15.98 kB / 0.5809 GB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-06/0.6286, allocations: 3.984 kB / 0.5809 GB, free: 7.969 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 8.101e-05/0.6287, allocations: 101 kB / 0.581 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.097e-05/0.6288, allocations: 49.62 kB / 0.581 GB, free: 7.809 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.6288, allocations: 11.89 kB / 0.581 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.6288, allocations: 11.97 kB / 0.5811 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.6288, allocations: 0 / 0.5811 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.6288, allocations: 0.875 kB / 0.5811 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.6289, allocations: 0 / 0.5811 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.629, allocations: 138.2 kB / 0.5812 GB, free: 7.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.629, allocations: 0 / 0.5812 GB, free: 7.613 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.752e-05/0.6291, allocations: 4 kB / 0.5812 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.6291, allocations: 11.94 kB / 0.5812 GB, free: 7.598 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.6291, allocations: 4 kB / 0.5812 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.6291, allocations: 4 kB / 0.5812 GB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.6291, allocations: 0 / 0.5812 GB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.6292, allocations: 135.5 kB / 0.5813 GB, free: 7.441 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.6293, allocations: 77.11 kB / 0.5814 GB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.6293, allocations: 3.953 kB / 0.5814 GB, free: 7.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.824e-05/0.6294, allocations: 15.98 kB / 0.5814 GB, free: 7.328 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.6295, allocations: 15.95 kB / 0.5814 GB, free: 7.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.6295, allocations: 4 kB / 0.5814 GB, free: 7.309 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.327e-05/0.6296, allocations: 87.92 kB / 0.5815 GB, free: 7.223 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6296, allocations: 2.953 kB / 0.5815 GB, free: 7.223 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002041/0.6298, allocations: 4 kB / 0.5815 GB, free: 7.219 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.000395/0.6302, allocations: 0.6656 MB / 0.5822 GB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.484e-05/0.6303, allocations: 23.98 kB / 0.5822 GB, free: 6.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6303, allocations: 0 / 0.5822 GB, free: 6.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.208e-05/0.6303, allocations: 11.94 kB / 0.5822 GB, free: 6.488 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.6305, allocations: 4.5 kB / 0.5822 GB, free: 6.484 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003475/0.6308, allocations: 89.59 kB / 0.5823 GB, free: 6.359 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.6311, allocations: 0.6847 MB / 0.583 GB, free: 5.648 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.28e-05/0.6311, allocations: 3.984 kB / 0.583 GB, free: 5.645 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.639e-05/0.6312, allocations: 15.44 kB / 0.583 GB, free: 5.629 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6312, allocations: 0 / 0.583 GB, free: 5.629 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02005/0.6512, allocations: 0.8741 MB / 0.5839 GB, free: 4.766 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000183/0.6515, allocations: 126 kB / 0.584 GB, free: 4.566 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.439/2.091, allocations: 0 / 0.584 GB, free: 4.566 MB / 394.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat does not exist to compare? outputFormat=mat