Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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) 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(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",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.001026/0.001026, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009347/0.0009346, allocations: 94.61 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004564/0.0004565, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2325, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09748/0.3301, allocations: 82.24 MB / 483.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003487/0.3305, allocations: 71.95 kB / 483.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03695/0.3675, allocations: 16.64 MB / 0.4888 GB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3675, allocations: 0 / 0.4888 GB, free: 13.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.3676, allocations: 4 kB / 0.4888 GB, free: 13.56 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.001092/0.3687, allocations: 0.6798 MB / 0.4895 GB, free: 12.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.3687, allocations: 8.031 kB / 0.4895 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.763e-05/0.3688, allocations: 42.56 kB / 0.4895 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.369, allocations: 35.61 kB / 0.4895 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.3695, allocations: 253.5 kB / 0.4898 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.3695, allocations: 8 kB / 0.4898 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.3696, allocations: 8 kB / 0.4898 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003654/0.37, allocations: 129.5 kB / 0.4899 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.37, allocations: 0 / 0.4899 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.37, allocations: 8 kB / 0.4899 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.37, allocations: 0 / 0.4899 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.3702, allocations: 63.95 kB / 0.49 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.3713, allocations: 464.5 kB / 0.4904 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.3715, allocations: 94.53 kB / 0.4905 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.319e-05/0.3716, allocations: 4 kB / 0.4905 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003985/0.372, allocations: 206.8 kB / 0.4907 GB, free: 11.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.324e-06/0.372, allocations: 4 kB / 0.4907 GB, free: 11.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.001164/0.3732, allocations: 0.6113 MB / 0.4913 GB, free: 10.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.3733, allocations: 170.2 kB / 0.4915 GB, free: 10.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000706/0.374, allocations: 464.5 kB / 0.4919 GB, free: 10.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.3741, allocations: 29.7 kB / 0.492 GB, free: 9.996 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.018e-05/0.3742, allocations: 105.2 kB / 0.4921 GB, free: 9.887 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.484e-05/0.3742, allocations: 27.66 kB / 0.4921 GB, free: 9.859 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.3743, allocations: 3.984 kB / 0.4921 GB, free: 9.855 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3744, allocations: 322.8 kB / 0.4924 GB, free: 9.531 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.3746, allocations: 63.91 kB / 0.4925 GB, free: 9.469 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.3747, allocations: 73.67 kB / 0.4925 GB, free: 9.391 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.3749, allocations: 162.8 kB / 0.4927 GB, free: 9.207 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.3749, allocations: 3.953 kB / 0.4927 GB, free: 9.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005975/0.3755, allocations: 384 kB / 0.4931 GB, free: 8.797 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.3757, allocations: 126.8 kB / 0.4932 GB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.3757, allocations: 0 / 0.4932 GB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.3757, allocations: 8.031 kB / 0.4932 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.848e-05/0.3758, allocations: 0 / 0.4932 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3758, allocations: 0 / 0.4932 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.3759, allocations: 12 kB / 0.4932 GB, free: 8.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.3761, allocations: 59.92 kB / 0.4933 GB, free: 8.57 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.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0004863/0.3766, allocations: 366.7 kB / 0.4936 GB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.27e-05/0.3766, allocations: 39.48 kB / 0.4936 GB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.3768, allocations: 67.16 kB / 0.4937 GB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.3768, allocations: 4 kB / 0.4937 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3768, allocations: 0 / 0.4937 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3768, allocations: 0 / 0.4937 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.3779, allocations: 0.8017 MB / 0.4945 GB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.3779, allocations: 4.188 kB / 0.4945 GB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.426e-06/0.378, allocations: 4 kB / 0.4945 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-05/0.378, allocations: 0 / 0.4945 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.378, allocations: 15.94 kB / 0.4945 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.378, allocations: 0 / 0.4945 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.378, allocations: 3.984 kB / 0.4945 GB, free: 7.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007058/0.3787, allocations: 0.5174 MB / 0.495 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004261/0.3792, allocations: 248.3 kB / 0.4953 GB, free: 6.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.3793, allocations: 12 kB / 0.4953 GB, free: 6.328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.3794, allocations: 15.92 kB / 0.4953 GB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.3796, allocations: 27.97 kB / 0.4953 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.606e-05/0.3797, allocations: 55.94 kB / 0.4954 GB, free: 6.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006309/0.3803, allocations: 394.8 kB / 0.4957 GB, free: 5.848 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3803, allocations: 0 / 0.4957 GB, free: 5.848 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003433/0.3807, allocations: 44 kB / 0.4958 GB, free: 5.805 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.00138/0.3821, allocations: 1.076 MB / 0.4968 GB, free: 4.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005997/0.3827, allocations: 437.5 kB / 0.4973 GB, free: 4.203 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.3827, allocations: 4.062 kB / 0.4973 GB, free: 4.199 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.3831, allocations: 381.5 kB / 0.4976 GB, free: 3.777 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.3836, allocations: 96.77 kB / 0.4977 GB, free: 3.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.3866, allocations: 1.595 MB / 0.4993 GB, free: 2.031 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005545/0.3872, allocations: 0.8103 MB / 0.5001 GB, free: 1.195 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.384e-05/0.3873, allocations: 12.59 kB / 0.5001 GB, free: 1.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.058e-05/0.3873, allocations: 23.44 kB / 0.5001 GB, free: 1.156 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/0.3873, allocations: 0 / 0.5001 GB, free: 1.156 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2094/0.5967, allocations: 5.308 MB / 0.5053 GB, free: 99.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/0.5969, allocations: 171.8 kB / 0.5055 GB, free: 99.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/2.166, allocations: 0 / 0.5055 GB, free: 99.54 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat