Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",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.001086/0.001086, allocations: 180.8 kB / 16.39 MB, free: 5.762 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.322/1.322, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0008723/0.0008723, allocations: 97.44 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002627, allocations: 11.98 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2564, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1099/0.3664, allocations: 82.24 MB / 483.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.3667, allocations: 70.38 kB / 483.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0354/0.4021, allocations: 16.65 MB / 0.4888 GB, free: 13.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4022, allocations: 0 / 0.4888 GB, free: 13.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.4022, allocations: 4 kB / 0.4888 GB, free: 13.55 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.0008598/0.4031, allocations: 0.676 MB / 0.4895 GB, free: 12.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.4031, allocations: 8.031 kB / 0.4895 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.4032, allocations: 38.5 kB / 0.4895 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.936e-05/0.4033, allocations: 43.61 kB / 0.4896 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.4036, allocations: 249.5 kB / 0.4898 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.4037, allocations: 8 kB / 0.4898 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.4037, allocations: 8 kB / 0.4898 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/0.4041, allocations: 129.5 kB / 0.4899 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.4041, allocations: 0 / 0.4899 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.4041, allocations: 4 kB / 0.4899 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4041, allocations: 0 / 0.4899 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.4043, allocations: 67.89 kB / 0.49 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008011/0.4051, allocations: 464.5 kB / 0.4904 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.4053, allocations: 98.47 kB / 0.4905 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.4053, allocations: 4 kB / 0.4905 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003093/0.4056, allocations: 210.5 kB / 0.4907 GB, free: 11.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.234e-06/0.4057, allocations: 0 / 0.4907 GB, free: 11.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008967/0.4066, allocations: 0.6115 MB / 0.4913 GB, free: 10.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.4067, allocations: 170.2 kB / 0.4915 GB, free: 10.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006221/0.4073, allocations: 464.4 kB / 0.4919 GB, free: 10.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.4074, allocations: 29.7 kB / 0.492 GB, free: 9.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.4074, allocations: 101.1 kB / 0.4921 GB, free: 9.883 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.273e-05/0.4075, allocations: 23.81 kB / 0.4921 GB, free: 9.859 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.008e-05/0.4075, allocations: 15.86 kB / 0.4921 GB, free: 9.844 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4077, allocations: 322.8 kB / 0.4924 GB, free: 9.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.4078, allocations: 55.97 kB / 0.4925 GB, free: 9.465 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.408, allocations: 73.67 kB / 0.4925 GB, free: 9.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.4082, allocations: 170.7 kB / 0.4927 GB, free: 9.195 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4082, allocations: 3.953 kB / 0.4927 GB, free: 9.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005625/0.4087, allocations: 376.1 kB / 0.4931 GB, free: 8.793 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.4089, allocations: 126.8 kB / 0.4932 GB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4089, allocations: 4.031 kB / 0.4932 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.4089, allocations: 4 kB / 0.4932 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.66e-05/0.4089, allocations: 4 kB / 0.4932 GB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.4089, allocations: 3.938 kB / 0.4932 GB, free: 8.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.4091, allocations: 12 kB / 0.4932 GB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/0.4092, allocations: 59.92 kB / 0.4933 GB, free: 8.559 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.000385/0.4096, allocations: 362.9 kB / 0.4936 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.811e-05/0.4096, allocations: 43.48 kB / 0.4937 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.4098, allocations: 67.16 kB / 0.4937 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4098, allocations: 4 kB / 0.4937 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.4098, allocations: 0 / 0.4937 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.4098, allocations: 0 / 0.4937 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.4108, allocations: 0.7978 MB / 0.4945 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4108, allocations: 0 / 0.4945 GB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.216e-06/0.4108, allocations: 4 kB / 0.4945 GB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.4108, allocations: 0 / 0.4945 GB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.4109, allocations: 8 kB / 0.4945 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.4109, allocations: 4 kB / 0.4945 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4109, allocations: 7.984 kB / 0.4945 GB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006634/0.4116, allocations: 0.5211 MB / 0.495 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003712/0.4119, allocations: 252.3 kB / 0.4953 GB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.412, allocations: 12 kB / 0.4953 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.4122, allocations: 11.98 kB / 0.4953 GB, free: 6.309 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.4123, allocations: 23.97 kB / 0.4953 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/0.4124, allocations: 63.94 kB / 0.4954 GB, free: 6.223 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000509/0.4129, allocations: 394.8 kB / 0.4958 GB, free: 5.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4129, allocations: 3.938 kB / 0.4958 GB, free: 5.836 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002982/0.4132, allocations: 44 kB / 0.4958 GB, free: 5.793 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.001066/0.4143, allocations: 1.066 MB / 0.4968 GB, free: 4.676 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005381/0.4148, allocations: 445.7 kB / 0.4973 GB, free: 4.191 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4148, allocations: 0 / 0.4973 GB, free: 4.191 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003369/0.4152, allocations: 381.6 kB / 0.4976 GB, free: 3.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.4157, allocations: 90.42 kB / 0.4977 GB, free: 3.676 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.4182, allocations: 1.599 MB / 0.4993 GB, free: 2.023 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.4187, allocations: 0.8025 MB / 0.5001 GB, free: 1.195 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.688e-05/0.4187, allocations: 16.62 kB / 0.5001 GB, free: 1.176 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.947e-05/0.4188, allocations: 23.44 kB / 0.5001 GB, free: 1.152 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4188, allocations: 0 / 0.5001 GB, free: 1.152 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1982/0.617, allocations: 5.298 MB / 0.5053 GB, free: 99.81 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001268/0.6172, allocations: 175 kB / 0.5054 GB, free: 99.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.319, allocations: 0 / 0.5054 GB, free: 99.57 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat