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.001343/0.001343, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008661/0.000866, allocations: 85.28 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.192e-05/2.192e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09629, allocations: 50.41 MB / 387.5 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3889/0.4853, allocations: 81.51 MB / 469.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.4855, allocations: 67.95 kB / 469.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03141/0.5169, allocations: 16.64 MB / 485.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.517, allocations: 0 / 485.8 MB, free: 12.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.517, allocations: 4 kB / 485.8 MB, free: 12.56 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.000782/0.5178, allocations: 0.6175 MB / 486.4 MB, free: 11.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.927e-05/0.5179, allocations: 12.02 kB / 486.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.993e-05/0.518, allocations: 35.62 kB / 486.4 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.5184, allocations: 255.6 kB / 486.7 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.5184, allocations: 8 kB / 486.7 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.5184, allocations: 8 kB / 486.7 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001368/0.5186, allocations: 59.88 kB / 486.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.5188, allocations: 117.6 kB / 486.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.5188, allocations: 0 / 486.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.5188, allocations: 4 kB / 486.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.5188, allocations: 3.938 kB / 486.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005939/0.5194, allocations: 437.1 kB / 487.3 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.5196, allocations: 90.52 kB / 487.4 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.5197, allocations: 80.89 kB / 487.5 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.5197, allocations: 0 / 487.5 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.52, allocations: 198.6 kB / 487.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.52, allocations: 4 kB / 487.7 MB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005014/0.5205, allocations: 273.3 kB / 487.9 MB, free: 10.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/0.5206, allocations: 170.2 kB / 488.1 MB, free: 9.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005268/0.5211, allocations: 444.9 kB / 488.5 MB, free: 9.551 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.927e-05/0.5212, allocations: 29.7 kB / 488.6 MB, free: 9.516 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.5212, allocations: 97.45 kB / 488.7 MB, free: 9.414 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.5213, allocations: 31.64 kB / 488.7 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.5213, allocations: 0 / 488.7 MB, free: 9.383 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5215, allocations: 326.8 kB / 489 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.034e-05/0.5216, allocations: 59.92 kB / 489.1 MB, free: 8.996 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.813e-05/0.5216, allocations: 49.39 kB / 489.1 MB, free: 8.949 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.047e-05/0.5218, allocations: 47.84 kB / 489.2 MB, free: 8.902 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.5218, allocations: 0 / 489.2 MB, free: 8.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003659/0.5221, allocations: 253.9 kB / 489.4 MB, free: 8.648 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.886e-05/0.5222, allocations: 120.4 kB / 489.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.5222, allocations: 0 / 489.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.5223, allocations: 4 kB / 489.5 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.928e-05/0.5223, allocations: 3.938 kB / 489.5 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.5223, allocations: 4 kB / 489.5 MB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.5224, allocations: 11.98 kB / 489.6 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-05/0.5225, allocations: 60.11 kB / 489.6 MB, free: 8.426 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.0001761/0.5227, allocations: 251.7 kB / 489.9 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004111/0.5231, allocations: 297.1 kB / 490.2 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.5232, allocations: 39.61 kB / 490.2 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.5233, allocations: 63.44 kB / 490.3 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.5233, allocations: 0 / 490.3 MB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.5233, allocations: 4 kB / 490.3 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.5233, allocations: 4 kB / 490.3 MB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007214/0.524, allocations: 0.6393 MB / 490.9 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.524, allocations: 0 / 490.9 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.89e-06/0.5241, allocations: 0 / 490.9 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.5241, allocations: 7.984 kB / 490.9 MB, free: 7.047 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.5241, allocations: 12 kB / 490.9 MB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.742e-06/0.5241, allocations: 3.984 kB / 490.9 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5241, allocations: 0 / 490.9 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004348/0.5246, allocations: 394.9 kB / 491.3 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.5248, allocations: 248.5 kB / 491.6 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.165e-05/0.5249, allocations: 4 kB / 491.6 MB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.525, allocations: 16 kB / 491.6 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.5252, allocations: 23.97 kB / 491.6 MB, free: 6.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.329e-05/0.5252, allocations: 67.91 kB / 491.7 MB, free: 6.258 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003774/0.5256, allocations: 370.7 kB / 492 MB, free: 5.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5256, allocations: 4 kB / 492 MB, free: 5.895 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002796/0.5259, allocations: 40 kB / 492.1 MB, free: 5.855 MB / 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.0007037/0.5266, allocations: 0.9384 MB / 493 MB, free: 4.891 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004013/0.527, allocations: 421.5 kB / 493.4 MB, free: 4.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.527, allocations: 0 / 493.4 MB, free: 4.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.5273, allocations: 369.6 kB / 493.8 MB, free: 4.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005092/0.5278, allocations: 97.52 kB / 493.9 MB, free: 3.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.5289, allocations: 0.5982 MB / 494.5 MB, free: 3.289 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.5293, allocations: 0.8101 MB / 495.3 MB, free: 2.453 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.896e-05/0.5294, allocations: 8.656 kB / 495.3 MB, free: 2.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.597e-05/0.5294, allocations: 27.42 kB / 495.3 MB, free: 2.418 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5294, allocations: 4 kB / 495.3 MB, free: 2.414 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02221/0.5516, allocations: 4.896 MB / 0.4885 GB, free: 13.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.5519, allocations: 132.1 kB / 0.4886 GB, free: 13.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/2.124, allocations: 0 / 0.4886 GB, free: 13.26 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