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.0009478/0.0009479, allocations: 174.5 kB / 13.63 MB, free: 1.684 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.35/1.35, allocations: 221.3 MB / 235.5 MB, free: 2.891 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008287/0.0008288, allocations: 86.53 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.397e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 50.42 MB / 394.3 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3024/0.4047, allocations: 82.18 MB / 476.5 MB, free: 5.297 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.405, allocations: 63.97 kB / 476.6 MB, free: 5.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03195/0.4369, allocations: 16.74 MB / 493.3 MB, free: 4.547 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.437, allocations: 0 / 493.3 MB, free: 4.547 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.4371, allocations: 4 kB / 493.3 MB, free: 4.543 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.0008214/0.4379, allocations: 0.6213 MB / 494 MB, free: 3.852 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/0.438, allocations: 8.031 kB / 494 MB, free: 3.844 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.307e-05/0.438, allocations: 38.55 kB / 494 MB, free: 3.797 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.415e-05/0.4381, allocations: 39.62 kB / 494 MB, free: 3.758 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/0.4385, allocations: 253.5 kB / 494.3 MB, free: 3.473 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.4386, allocations: 11.88 kB / 494.3 MB, free: 3.461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.4386, allocations: 12 kB / 494.3 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.4389, allocations: 129.6 kB / 494.4 MB, free: 3.316 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.4389, allocations: 3.938 kB / 494.4 MB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.439, allocations: 8 kB / 494.4 MB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.439, allocations: 0 / 494.4 MB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.4391, allocations: 51.98 kB / 494.5 MB, free: 3.254 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.4399, allocations: 472.6 kB / 495 MB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.4401, allocations: 94.5 kB / 495 MB, free: 2.641 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.4402, allocations: 84.91 kB / 495.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.4402, allocations: 0 / 495.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002927/0.4405, allocations: 202.7 kB / 495.3 MB, free: 2.332 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.243e-06/0.4405, allocations: 0 / 495.3 MB, free: 2.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006173/0.4412, allocations: 407.9 kB / 495.7 MB, free: 1.902 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.139e-05/0.4413, allocations: 170.2 kB / 495.9 MB, free: 1.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005545/0.4418, allocations: 462.5 kB / 496.3 MB, free: 1.238 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.4419, allocations: 29.7 kB / 496.4 MB, free: 1.203 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.264e-05/0.4419, allocations: 97.14 kB / 496.5 MB, free: 1.102 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.763e-05/0.442, allocations: 27.7 kB / 496.5 MB, free: 1.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.301e-05/0.442, allocations: 0 / 496.5 MB, free: 1.074 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4421, allocations: 322.8 kB / 496.8 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.4422, allocations: 63.98 kB / 496.9 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.4424, allocations: 59.92 kB / 496.9 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.4425, allocations: 170.6 kB / 497.1 MB, free: 448 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4425, allocations: 0 / 497.1 MB, free: 448 kB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000456/0.443, allocations: 369.7 kB / 497.5 MB, free: 48 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.4431, allocations: 126.8 kB / 497.6 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4431, allocations: 0 / 497.6 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.4431, allocations: 0 / 497.6 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.348e-05/0.4432, allocations: 3.984 kB / 497.6 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.4432, allocations: 0 / 497.6 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.4433, allocations: 20.05 kB / 497.6 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.678e-05/0.4434, allocations: 55.94 kB / 497.7 MB, free: 15.82 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: 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.0002045/0.4436, allocations: 249.9 kB / 497.9 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/0.4437, allocations: 39.53 kB / 497.9 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.4438, allocations: 67.42 kB / 498 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.4438, allocations: 0 / 498 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.4438, allocations: 0 / 498 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4438, allocations: 0 / 498 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008485/0.4447, allocations: 0.8017 MB / 498.8 MB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.4447, allocations: 3.984 kB / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-06/0.4447, allocations: 0 / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.4447, allocations: 3.938 kB / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.4447, allocations: 16.12 kB / 498.8 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.4447, allocations: 7.984 kB / 498.8 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4447, allocations: 0 / 498.8 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005241/0.4453, allocations: 0.5135 MB / 499.4 MB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.4456, allocations: 252.4 kB / 499.6 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.056e-05/0.4457, allocations: 12 kB / 499.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.4458, allocations: 8 kB / 499.6 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.861e-05/0.4459, allocations: 23.97 kB / 499.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-05/0.446, allocations: 63.92 kB / 499.7 MB, free: 13.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004125/0.4464, allocations: 388.9 kB / 0.4884 GB, free: 13.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4464, allocations: 0 / 0.4884 GB, free: 13.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002507/0.4466, allocations: 40 kB / 0.4884 GB, free: 13.19 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) * 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.000803/0.4475, allocations: 1.07 MB / 0.4895 GB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004024/0.4479, allocations: 429.6 kB / 0.4899 GB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4479, allocations: 0 / 0.4899 GB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002581/0.4481, allocations: 373.5 kB / 0.4902 GB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.4486, allocations: 108.8 kB / 0.4903 GB, free: 11.08 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.4497, allocations: 0.6067 MB / 0.4909 GB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.4501, allocations: 0.8065 MB / 0.4917 GB, free: 9.594 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.011e-05/0.4501, allocations: 12.64 kB / 0.4917 GB, free: 9.578 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.004e-05/0.4502, allocations: 23.44 kB / 0.4917 GB, free: 9.555 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4502, allocations: 0 / 0.4917 GB, free: 9.555 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01586/0.466, allocations: 5.326 MB / 0.4969 GB, free: 4.227 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.4662, allocations: 157.5 kB / 0.4971 GB, free: 3.988 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/2.064, allocations: 0 / 0.4971 GB, free: 3.988 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