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.001018/0.001018, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008916/0.0008915, allocations: 86.33 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.399e-05/4.42e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1423, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4018/0.5442, allocations: 82.99 MB / 485.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.5444, allocations: 68.89 kB / 485.2 MB, free: 6.383 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03134/0.5758, allocations: 16.8 MB / 0.4902 GB, free: 7.457 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.5758, allocations: 4 kB / 0.4902 GB, free: 7.453 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.5758, allocations: 4 kB / 0.4902 GB, free: 7.449 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006893/0.5765, allocations: 0.6216 MB / 0.4908 GB, free: 6.773 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.5766, allocations: 8.031 kB / 0.4908 GB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.063e-05/0.5767, allocations: 42.56 kB / 0.4909 GB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.877e-05/0.5768, allocations: 35.61 kB / 0.4909 GB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.5771, allocations: 258.5 kB / 0.4912 GB, free: 6.391 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.5772, allocations: 11.98 kB / 0.4912 GB, free: 6.379 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.5772, allocations: 8 kB / 0.4912 GB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002595/0.5775, allocations: 132.2 kB / 0.4913 GB, free: 6.238 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.5775, allocations: 4 kB / 0.4913 GB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.5775, allocations: 4 kB / 0.4913 GB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.5775, allocations: 0 / 0.4913 GB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.5777, allocations: 55.98 kB / 0.4914 GB, free: 6.176 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000748/0.5784, allocations: 464.9 kB / 0.4918 GB, free: 5.691 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.5786, allocations: 94.56 kB / 0.4919 GB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.5788, allocations: 80.91 kB / 0.492 GB, free: 5.508 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.358e-06/0.5788, allocations: 0 / 0.492 GB, free: 5.508 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.5791, allocations: 208.9 kB / 0.4922 GB, free: 5.281 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.5791, allocations: 0 / 0.4922 GB, free: 5.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.000723/0.5799, allocations: 403.9 kB / 0.4926 GB, free: 4.855 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.58, allocations: 170.2 kB / 0.4927 GB, free: 4.652 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.5807, allocations: 462.5 kB / 0.4932 GB, free: 4.191 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.853e-05/0.5808, allocations: 29.7 kB / 0.4932 GB, free: 4.156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.861e-05/0.5808, allocations: 97.14 kB / 0.4933 GB, free: 4.055 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.356e-05/0.5809, allocations: 35.55 kB / 0.4933 GB, free: 4.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/0.5809, allocations: 4 kB / 0.4933 GB, free: 4.016 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.5811, allocations: 318.8 kB / 0.4936 GB, free: 3.695 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.5812, allocations: 59.98 kB / 0.4937 GB, free: 3.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.5813, allocations: 55.98 kB / 0.4937 GB, free: 3.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.5815, allocations: 169 kB / 0.4939 GB, free: 3.395 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.5816, allocations: 0 / 0.4939 GB, free: 3.395 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005471/0.5821, allocations: 368.3 kB / 0.4943 GB, free: 3.004 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.5822, allocations: 122.8 kB / 0.4944 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.5822, allocations: 0 / 0.4944 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/0.5823, allocations: 112 / 0.4944 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.792e-05/0.5823, allocations: 11.92 kB / 0.4944 GB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.5823, allocations: 0 / 0.4944 GB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.5825, allocations: 15.89 kB / 0.4944 GB, free: 2.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.384e-05/0.5826, allocations: 55.94 kB / 0.4944 GB, free: 2.777 MB / 362.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: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,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 () * 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.0001901/0.5828, allocations: 246 kB / 0.4947 GB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.835e-05/0.5829, allocations: 41.31 kB / 0.4947 GB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.583, allocations: 71.41 kB / 0.4948 GB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.583, allocations: 4 kB / 0.4948 GB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.583, allocations: 0 / 0.4948 GB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.583, allocations: 0 / 0.4948 GB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.5841, allocations: 0.798 MB / 0.4956 GB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5841, allocations: 0 / 0.4956 GB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.592e-06/0.5841, allocations: 7.938 kB / 0.4956 GB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.5841, allocations: 0 / 0.4956 GB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.002e-05/0.5842, allocations: 12 kB / 0.4956 GB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.5842, allocations: 0 / 0.4956 GB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5842, allocations: 3.984 kB / 0.4956 GB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006865/0.5849, allocations: 0.5057 MB / 0.4961 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004762/0.5854, allocations: 252.4 kB / 0.4963 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/0.5854, allocations: 12.17 kB / 0.4963 GB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.5856, allocations: 20 kB / 0.4964 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.5858, allocations: 27.97 kB / 0.4964 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/0.5859, allocations: 59.92 kB / 0.4964 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005633/0.5864, allocations: 384.9 kB / 0.4968 GB, free: 196 kB / 362.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5865, allocations: 0.75 kB / 0.4968 GB, free: 196 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003203/0.5868, allocations: 40 kB / 0.4969 GB, free: 156 kB / 362.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) * 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.001026/0.5878, allocations: 1.081 MB / 0.4979 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004818/0.5883, allocations: 429.6 kB / 0.4983 GB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5883, allocations: 3.938 kB / 0.4983 GB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.5887, allocations: 373.6 kB / 0.4987 GB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.5892, allocations: 102.6 kB / 0.4988 GB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.5905, allocations: 0.6105 MB / 0.4994 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005333/0.5911, allocations: 0.8065 MB / 0.5002 GB, free: 12.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.629e-05/0.5912, allocations: 11.66 kB / 0.5002 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.784e-05/0.5912, allocations: 23.44 kB / 0.5002 GB, free: 12.52 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5912, allocations: 0 / 0.5002 GB, free: 12.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.6097, allocations: 5.332 MB / 0.5054 GB, free: 7.27 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.6099, allocations: 143.7 kB / 0.5055 GB, free: 7.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.542/2.151, allocations: 0 / 0.5055 GB, free: 7.051 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