Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007971/0.0007971, allocations: 88.97 kB / 297.2 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002481/0.0002482, allocations: 8 kB / 358 MB, free: 9.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1868/0.187, allocations: 51.49 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08884/0.2759, allocations: 83.06 MB / 492.6 MB, free: 7.547 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001738/0.2761, allocations: 73.91 kB / 492.6 MB, free: 7.477 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03028/0.3064, allocations: 16.7 MB / 0.4974 GB, free: 6.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3065, allocations: 0 / 0.4974 GB, free: 6.859 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.3065, allocations: 7.938 kB / 0.4974 GB, free: 6.852 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006292/0.3071, allocations: 0.676 MB / 0.4981 GB, free: 6.102 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3072, allocations: 12.03 kB / 0.4981 GB, free: 6.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.348e-05/0.3072, allocations: 42.5 kB / 0.4981 GB, free: 6.039 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.3073, allocations: 35.62 kB / 0.4981 GB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.3076, allocations: 257.5 kB / 0.4984 GB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.3076, allocations: 4 kB / 0.4984 GB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.3076, allocations: 8 kB / 0.4984 GB, free: 5.703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.3079, allocations: 129.6 kB / 0.4985 GB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.3079, allocations: 0 / 0.4985 GB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.473e-05/0.308, allocations: 12 kB / 0.4985 GB, free: 5.559 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.308, allocations: 7.922 kB / 0.4985 GB, free: 5.551 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.3081, allocations: 59.95 kB / 0.4986 GB, free: 5.492 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006217/0.3087, allocations: 456.5 kB / 0.499 GB, free: 4.996 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.3089, allocations: 94.48 kB / 0.4991 GB, free: 4.895 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.178e-06/0.3089, allocations: 4.109 kB / 0.4991 GB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.3092, allocations: 210.7 kB / 0.4993 GB, free: 4.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.3092, allocations: 0 / 0.4993 GB, free: 4.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007863/0.31, allocations: 0.6114 MB / 0.4999 GB, free: 3.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.3101, allocations: 166.2 kB / 0.5001 GB, free: 3.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/0.3106, allocations: 464.5 kB / 0.5005 GB, free: 3.316 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.3107, allocations: 33.7 kB / 0.5006 GB, free: 3.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.366e-05/0.3107, allocations: 105.1 kB / 0.5007 GB, free: 3.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.3108, allocations: 31.56 kB / 0.5007 GB, free: 3.137 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.531e-05/0.3108, allocations: 4 kB / 0.5007 GB, free: 3.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3109, allocations: 318.8 kB / 0.501 GB, free: 2.812 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.311, allocations: 59.97 kB / 0.5011 GB, free: 2.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.3112, allocations: 80.98 kB / 0.5011 GB, free: 2.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.3113, allocations: 166.4 kB / 0.5013 GB, free: 2.488 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3113, allocations: 4 kB / 0.5013 GB, free: 2.484 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004959/0.3118, allocations: 376.3 kB / 0.5017 GB, free: 2.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.931e-05/0.3119, allocations: 125.3 kB / 0.5018 GB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3119, allocations: 3.984 kB / 0.5018 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.312, allocations: 0 / 0.5018 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.713e-05/0.312, allocations: 3.938 kB / 0.5018 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.312, allocations: 4 kB / 0.5018 GB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3121, allocations: 8 kB / 0.5018 GB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.086e-05/0.3122, allocations: 64 kB / 0.5019 GB, free: 1.859 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.000306/0.3125, allocations: 370.8 kB / 0.5022 GB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.248e-05/0.3126, allocations: 39.53 kB / 0.5022 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.114e-05/0.3127, allocations: 63.16 kB / 0.5023 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3127, allocations: 0 / 0.5023 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3127, allocations: 3.938 kB / 0.5023 GB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.3127, allocations: 0 / 0.5023 GB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000868/0.3136, allocations: 0.8095 MB / 0.5031 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3136, allocations: 0 / 0.5031 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.738e-06/0.3136, allocations: 4 kB / 0.5031 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3136, allocations: 0 / 0.5031 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.3136, allocations: 15.94 kB / 0.5031 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3136, allocations: 0 / 0.5031 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3136, allocations: 0 / 0.5031 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1825/0.4961, allocations: 0.5187 MB / 0.5036 GB, free: 95.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005595/0.4967, allocations: 245.9 kB / 0.5039 GB, free: 95.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.005e-05/0.4968, allocations: 11.28 kB / 0.5039 GB, free: 95.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.497, allocations: 15.48 kB / 0.5039 GB, free: 95.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.4972, allocations: 28.62 kB / 0.5039 GB, free: 95.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.4973, allocations: 60.22 kB / 0.504 GB, free: 95.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006889/0.498, allocations: 387.1 kB / 0.5043 GB, free: 95.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.498, allocations: 0.5938 kB / 0.5043 GB, free: 95.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003786/0.4984, allocations: 45.78 kB / 0.5044 GB, free: 95.53 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.000991/0.4994, allocations: 1.074 MB / 0.5054 GB, free: 94.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005589/0.5, allocations: 436.5 kB / 0.5058 GB, free: 94.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.5, allocations: 1.406 kB / 0.5058 GB, free: 94.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003099/0.5003, allocations: 376.3 kB / 0.5062 GB, free: 94.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005309/0.5008, allocations: 99.45 kB / 0.5063 GB, free: 94.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.5032, allocations: 1.596 MB / 0.5079 GB, free: 93.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.5035, allocations: 0.8083 MB / 0.5087 GB, free: 92.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.711e-05/0.5036, allocations: 8.188 kB / 0.5087 GB, free: 92.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.5036, allocations: 31.95 kB / 0.5087 GB, free: 92.68 MB / 378.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5036, allocations: 1.594 kB / 0.5087 GB, free: 92.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.52, allocations: 5.303 MB / 0.5139 GB, free: 92.12 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001266/0.5201, allocations: 170.8 kB / 0.514 GB, free: 91.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.589/2.109, allocations: 7.938 kB / 0.514 GB, free: 91.88 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat