Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002076/0.002076, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.178/2.178, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001108, allocations: 87.45 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.639e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3446, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.5026, allocations: 80.61 MB / 443 MB, free: 5.598 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.5029, allocations: 69.38 kB / 443.1 MB, free: 5.531 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07788/0.5808, allocations: 16.41 MB / 459.5 MB, free: 5.227 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5809, allocations: 0 / 459.5 MB, free: 5.227 MB / 347.1 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.5809, allocations: 5.594 kB / 459.5 MB, free: 5.223 MB / 347.1 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.0008378/0.5818, allocations: 0.6313 MB / 460.2 MB, free: 4.523 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.5818, allocations: 12.02 kB / 460.2 MB, free: 4.512 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.582, allocations: 35.62 kB / 460.2 MB, free: 4.477 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004693/0.5824, allocations: 255.7 kB / 460.5 MB, free: 4.184 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.5825, allocations: 4 kB / 460.5 MB, free: 4.18 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.135e-05/0.5825, allocations: 8 kB / 460.5 MB, free: 4.172 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002009/0.5827, allocations: 51.98 kB / 460.5 MB, free: 4.121 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.5831, allocations: 125.5 kB / 460.6 MB, free: 3.992 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.5831, allocations: 0 / 460.6 MB, free: 3.992 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.77e-05/0.5831, allocations: 8 kB / 460.6 MB, free: 3.984 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.5832, allocations: 0 / 460.6 MB, free: 3.984 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.5842, allocations: 429 kB / 461.1 MB, free: 3.527 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.5845, allocations: 94.5 kB / 461.2 MB, free: 3.426 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.5847, allocations: 84.89 kB / 461.2 MB, free: 3.34 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.5847, allocations: 0 / 461.2 MB, free: 3.34 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004076/0.5852, allocations: 198.8 kB / 461.4 MB, free: 3.121 MB / 347.1 MB Notification: Performance of pre-optimization done (n=13): time 2.244e-06/0.5852, allocations: 6.281 kB / 461.4 MB, free: 3.117 MB / 347.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008409/0.586, allocations: 265.2 kB / 461.7 MB, free: 2.852 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.5862, allocations: 174.2 kB / 461.9 MB, free: 2.645 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009391/0.5871, allocations: 448.9 kB / 462.3 MB, free: 2.199 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.86e-05/0.5872, allocations: 33.64 kB / 462.3 MB, free: 2.16 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.5873, allocations: 159.9 kB / 462.5 MB, free: 2.004 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.391e-05/0.5874, allocations: 27.62 kB / 462.5 MB, free: 1.977 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.5875, allocations: 4 kB / 462.5 MB, free: 1.973 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.5876, allocations: 322.8 kB / 462.8 MB, free: 1.648 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.5878, allocations: 51.98 kB / 462.9 MB, free: 1.598 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.588, allocations: 55.98 kB / 462.9 MB, free: 1.543 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.5881, allocations: 40.83 kB / 463 MB, free: 1.504 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.5882, allocations: 0 / 463 MB, free: 1.504 MB / 347.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007293/0.5889, allocations: 243.2 kB / 463.2 MB, free: 1.262 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.589, allocations: 122.8 kB / 463.3 MB, free: 1.117 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5891, allocations: 0 / 463.3 MB, free: 1.117 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.5891, allocations: 0 / 463.3 MB, free: 1.117 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.573e-05/0.5891, allocations: 0 / 463.3 MB, free: 1.117 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.5892, allocations: 3.984 kB / 463.3 MB, free: 1.113 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.5894, allocations: 12 kB / 463.4 MB, free: 1.102 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.5896, allocations: 68 kB / 463.4 MB, free: 1.035 MB / 347.1 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.0002872/0.5899, allocations: 245.9 kB / 463.7 MB, free: 0.7617 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008383/0.5907, allocations: 297.4 kB / 464 MB, free: 476 kB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.511e-05/0.5908, allocations: 35.62 kB / 464 MB, free: 440 kB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002429/0.5911, allocations: 67.27 kB / 464.1 MB, free: 372 kB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.5911, allocations: 6.625 kB / 464.1 MB, free: 368 kB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.5911, allocations: 0 / 464.1 MB, free: 368 kB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.5911, allocations: 0 / 464.1 MB, free: 368 kB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.5925, allocations: 0.6462 MB / 464.7 MB, free: 15.67 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.5925, allocations: 4 kB / 464.7 MB, free: 15.67 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.286e-05/0.5925, allocations: 0 / 464.7 MB, free: 15.67 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.5926, allocations: 0 / 464.7 MB, free: 15.67 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.583e-05/0.5926, allocations: 19.92 kB / 464.7 MB, free: 15.65 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.5926, allocations: 0 / 464.7 MB, free: 15.65 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.5926, allocations: 0 / 464.7 MB, free: 15.65 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009231/0.5936, allocations: 395 kB / 465.1 MB, free: 15.25 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006137/0.5942, allocations: 248.4 kB / 465.4 MB, free: 14.98 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.211e-05/0.5943, allocations: 12 kB / 465.4 MB, free: 14.97 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.5946, allocations: 8 kB / 465.4 MB, free: 14.96 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.5948, allocations: 31.95 kB / 465.4 MB, free: 14.93 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.5949, allocations: 55.94 kB / 465.5 MB, free: 14.88 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.000749/0.5957, allocations: 370.7 kB / 465.8 MB, free: 14.52 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5957, allocations: 0 / 465.8 MB, free: 14.52 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0004673/0.5962, allocations: 47.95 kB / 465.9 MB, free: 14.47 MB / 363.1 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.001395/0.5976, allocations: 0.9424 MB / 466.8 MB, free: 13.5 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.5983, allocations: 413.6 kB / 467.2 MB, free: 13.05 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.5984, allocations: 0 / 467.2 MB, free: 13.05 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004603/0.5988, allocations: 369.6 kB / 467.6 MB, free: 12.64 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008607/0.5997, allocations: 100.5 kB / 467.7 MB, free: 12.54 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.6018, allocations: 0.6383 MB / 468.3 MB, free: 11.86 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006635/0.6025, allocations: 0.8061 MB / 469.1 MB, free: 11.03 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.376e-05/0.6026, allocations: 31.42 kB / 469.2 MB, free: 11 MB / 363.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6026, allocations: 0 / 469.2 MB, free: 11 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.401, allocations: 3.136 MB / 472.3 MB, free: 7.82 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat