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.001169/0.001169, allocations: 183.1 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001039/0.001039, allocations: 86.88 kB / 270.2 MB, free: 13.37 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.2073/0.2073, allocations: 43.57 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002786, allocations: 12 kB / 431.5 MB, free: 19.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1065, allocations: 58.86 MB / 490.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3175/0.4241, allocations: 85.13 MB / 0.562 GB, free: 14.54 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.4244, allocations: 70.73 kB / 0.562 GB, free: 14.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002694/0.4271, allocations: 0.9367 MB / 0.563 GB, free: 13.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4271, allocations: 0 / 0.563 GB, free: 13.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.4271, allocations: 4 kB / 0.563 GB, free: 13.67 MB / 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.000394/0.4275, allocations: 354.6 kB / 0.5633 GB, free: 13.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.4276, allocations: 12.03 kB / 0.5633 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.78e-05/0.4276, allocations: 33.56 kB / 0.5633 GB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.4277, allocations: 4 kB / 0.5634 GB, free: 13.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.4278, allocations: 171.6 kB / 0.5635 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.4278, allocations: 4 kB / 0.5635 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.4278, allocations: 0 / 0.5635 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001633/0.428, allocations: 62.89 kB / 0.5636 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.428, allocations: 0 / 0.5636 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.976e-06/0.428, allocations: 4 kB / 0.5636 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.428, allocations: 0 / 0.5636 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.947e-05/0.4281, allocations: 28.28 kB / 0.5636 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003771/0.4285, allocations: 266.1 kB / 0.5639 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.313e-05/0.4286, allocations: 37.88 kB / 0.5639 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.4286, allocations: 3.688 kB / 0.5639 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.4287, allocations: 30.56 kB / 0.5639 GB, free: 12.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.4287, allocations: 0 / 0.5639 GB, free: 12.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002373/0.4289, allocations: 77.14 kB / 0.564 GB, free: 12.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.429, allocations: 80.73 kB / 0.5641 GB, free: 12.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.79e-05/0.4291, allocations: 104.3 kB / 0.5642 GB, free: 12.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.4291, allocations: 33.2 kB / 0.5642 GB, free: 12.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.4291, allocations: 83.27 kB / 0.5643 GB, free: 12.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.4292, allocations: 3.906 kB / 0.5643 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-06/0.4292, allocations: 0 / 0.5643 GB, free: 12.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.4293, allocations: 322.5 kB / 0.5646 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.547e-05/0.4294, allocations: 19.58 kB / 0.5646 GB, free: 11.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.592e-05/0.4294, allocations: 25.58 kB / 0.5646 GB, free: 11.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.423e-05/0.4295, allocations: 8 kB / 0.5647 GB, free: 11.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4295, allocations: 4 kB / 0.5647 GB, free: 11.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001287/0.4296, allocations: 72.41 kB / 0.5647 GB, free: 11.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.4296, allocations: 6.656 kB / 0.5647 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.4297, allocations: 0 / 0.5647 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.4297, allocations: 4 kB / 0.5647 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.706e-05/0.4297, allocations: 4 kB / 0.5647 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.4298, allocations: 3.984 kB / 0.5647 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.53e-05/0.4298, allocations: 8 kB / 0.5648 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.4298, allocations: 0 / 0.5648 GB, free: 11.67 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 () * 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.918e-05/0.4299, allocations: 128.7 kB / 0.5649 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.43, allocations: 3.906 kB / 0.5649 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.893e-05/0.43, allocations: 11.03 kB / 0.5649 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.43, allocations: 0 / 0.5649 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.43, allocations: 0 / 0.5649 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.43, allocations: 3.062 kB / 0.5649 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.4302, allocations: 164.9 kB / 0.565 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.4302, allocations: 4 kB / 0.5651 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.899e-05/0.4302, allocations: 4 kB / 0.5651 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.4302, allocations: 7.938 kB / 0.5651 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.4303, allocations: 3.984 kB / 0.5651 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.4303, allocations: 0 / 0.5651 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4303, allocations: 0 / 0.5651 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.4304, allocations: 146.9 kB / 0.5652 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.51e-05/0.4305, allocations: 88.39 kB / 0.5653 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.4305, allocations: 11.84 kB / 0.5653 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.4306, allocations: 8 kB / 0.5653 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.4307, allocations: 7.984 kB / 0.5653 GB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.4307, allocations: 0 / 0.5653 GB, free: 11.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.546e-05/0.4307, allocations: 90.7 kB / 0.5654 GB, free: 10.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4307, allocations: 0 / 0.5654 GB, free: 10.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000194/0.4309, allocations: 4 kB / 0.5654 GB, free: 10.92 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) * 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.0004363/0.4314, allocations: 0.6975 MB / 0.5661 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.4315, allocations: 31.33 kB / 0.5661 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.4315, allocations: 0 / 0.5661 GB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.998e-05/0.4316, allocations: 15.17 kB / 0.5661 GB, free: 10.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.4317, allocations: 0 / 0.5661 GB, free: 10.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004214/0.4321, allocations: 168 kB / 0.5663 GB, free: 9.969 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.4324, allocations: 0.6849 MB / 0.567 GB, free: 9.258 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.034e-05/0.4325, allocations: 0 / 0.567 GB, free: 9.258 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.4325, allocations: 20.73 kB / 0.567 GB, free: 9.242 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4325, allocations: 0 / 0.567 GB, free: 9.242 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01162/0.4441, allocations: 1.183 MB / 0.5681 GB, free: 8.102 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001965/0.4444, allocations: 161.5 kB / 0.5683 GB, free: 7.859 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.388/1.833, allocations: 0 / 0.5683 GB, free: 7.859 MB / 378.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