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.001092/0.001092, 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.296/1.296, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.000862/0.000862, allocations: 87.86 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.878e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09275, allocations: 50.41 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3062/0.399, allocations: 82.18 MB / 476.5 MB, free: 5.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.3992, allocations: 67.97 kB / 476.6 MB, free: 5.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03171/0.4309, allocations: 16.74 MB / 493.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.431, allocations: 0 / 493.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.431, allocations: 8 kB / 493.3 MB, free: 4.559 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.0006262/0.4316, allocations: 0.6174 MB / 493.9 MB, free: 3.871 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.4317, allocations: 12.02 kB / 494 MB, free: 3.859 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.306e-05/0.4317, allocations: 38.56 kB / 494 MB, free: 3.812 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.215e-05/0.4318, allocations: 35.62 kB / 494 MB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.4322, allocations: 261.4 kB / 494.3 MB, free: 3.484 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.4322, allocations: 4 kB / 494.3 MB, free: 3.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.4322, allocations: 15.94 kB / 494.3 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.4325, allocations: 133.5 kB / 494.4 MB, free: 3.328 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.4325, allocations: 0 / 494.4 MB, free: 3.328 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.4325, allocations: 4 kB / 494.4 MB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.4325, allocations: 0 / 494.4 MB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.4326, allocations: 59.97 kB / 494.5 MB, free: 3.266 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.4332, allocations: 460.6 kB / 494.9 MB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.4334, allocations: 102.5 kB / 495 MB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.4335, allocations: 80.91 kB / 495.1 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.4335, allocations: 0 / 495.1 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.4338, allocations: 206.6 kB / 495.3 MB, free: 2.348 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.4338, allocations: 0 / 495.3 MB, free: 2.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005887/0.4344, allocations: 399.9 kB / 495.7 MB, free: 1.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.4345, allocations: 174.2 kB / 495.9 MB, free: 1.719 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005478/0.4351, allocations: 458.5 kB / 496.3 MB, free: 1.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.4351, allocations: 33.7 kB / 496.4 MB, free: 1.223 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.404e-05/0.4352, allocations: 97.12 kB / 496.5 MB, free: 1.121 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.748e-05/0.4352, allocations: 27.7 kB / 496.5 MB, free: 1.094 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.391e-05/0.4352, allocations: 0 / 496.5 MB, free: 1.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.4354, allocations: 322.8 kB / 496.8 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.4355, allocations: 59.98 kB / 496.9 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.389e-05/0.4356, allocations: 59.92 kB / 496.9 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.4357, allocations: 176.1 kB / 497.1 MB, free: 468 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4357, allocations: 0 / 497.1 MB, free: 468 kB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004341/0.4362, allocations: 372.9 kB / 497.5 MB, free: 64 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.963e-05/0.4363, allocations: 126.8 kB / 497.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4363, allocations: 0 / 497.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.4363, allocations: 0 / 497.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.452e-05/0.4363, allocations: 0 / 497.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.4363, allocations: 0 / 497.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.4364, allocations: 16.09 kB / 497.6 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.574e-05/0.4365, allocations: 67.88 kB / 497.7 MB, free: 15.83 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,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,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 () * 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.0001665/0.4367, allocations: 249.9 kB / 497.9 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.4368, allocations: 39.53 kB / 497.9 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.398e-05/0.4369, allocations: 59.44 kB / 498 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.4369, allocations: 0 / 498 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4369, allocations: 0 / 498 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.4369, allocations: 0 / 498 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008413/0.4377, allocations: 0.8058 MB / 498.8 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4377, allocations: 8 kB / 498.8 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.859e-06/0.4378, allocations: 3.938 kB / 498.8 MB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4378, allocations: 0 / 498.8 MB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.4378, allocations: 15.98 kB / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4378, allocations: 0 / 498.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4378, allocations: 3.938 kB / 498.8 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005614/0.4384, allocations: 0.5174 MB / 499.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003345/0.4387, allocations: 244.4 kB / 499.6 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.4388, allocations: 12 kB / 499.6 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.4389, allocations: 15.98 kB / 499.6 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.439, allocations: 27.97 kB / 499.7 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.674e-05/0.4391, allocations: 55.94 kB / 499.7 MB, free: 13.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004183/0.4395, allocations: 388.9 kB / 0.4884 GB, free: 13.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4395, allocations: 0 / 0.4884 GB, free: 13.24 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.4398, allocations: 44 kB / 0.4884 GB, free: 13.2 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) * 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.0008543/0.4406, allocations: 1.065 MB / 0.4894 GB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004313/0.4411, allocations: 429.6 kB / 0.4899 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4411, allocations: 0 / 0.4899 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002651/0.4414, allocations: 377.5 kB / 0.4902 GB, free: 11.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.4419, allocations: 102.5 kB / 0.4903 GB, free: 11.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.443, allocations: 0.6028 MB / 0.4909 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004307/0.4434, allocations: 0.8104 MB / 0.4917 GB, free: 9.613 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.393e-05/0.4435, allocations: 8.656 kB / 0.4917 GB, free: 9.602 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.403e-05/0.4435, allocations: 27.42 kB / 0.4917 GB, free: 9.574 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4435, allocations: 0 / 0.4917 GB, free: 9.574 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0146/0.4582, allocations: 5.328 MB / 0.4969 GB, free: 4.238 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.4584, allocations: 155.4 kB / 0.4971 GB, free: 4.008 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.475/1.934, allocations: 0 / 0.4971 GB, free: 4.008 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