Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001693/0.001693, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009835/0.0009838, allocations: 99.22 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.595e-05/2.598e-05, allocations: 4 kB / 343.8 MB, free: 8.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 51.47 MB / 395.3 MB, free: 4.703 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4703, allocations: 82.33 MB / 477.6 MB, free: 9.938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.4706, allocations: 66.19 kB / 477.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04259/0.5132, allocations: 16.7 MB / 494.4 MB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.561e-06/0.5133, allocations: 4 kB / 494.4 MB, free: 13.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.5133, allocations: 4 kB / 494.4 MB, free: 13.09 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.0008829/0.5142, allocations: 0.6185 MB / 495 MB, free: 12.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/0.5143, allocations: 8.031 kB / 495 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.5144, allocations: 35.62 kB / 495 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.5149, allocations: 261.8 kB / 495.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.5149, allocations: 8 kB / 495.3 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.515, allocations: 8 kB / 495.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001894/0.5152, allocations: 53.17 kB / 495.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.5155, allocations: 119 kB / 495.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.988e-06/0.5155, allocations: 0 / 495.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.794e-05/0.5156, allocations: 4 kB / 495.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.5156, allocations: 4 kB / 495.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009116/0.5165, allocations: 444.6 kB / 495.9 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.5167, allocations: 93.48 kB / 496 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.5169, allocations: 75.78 kB / 496.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.5169, allocations: 0 / 496.1 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003678/0.5173, allocations: 196.7 kB / 496.3 MB, free: 11.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.585e-06/0.5173, allocations: 4 kB / 496.3 MB, free: 11.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.000765/0.5181, allocations: 269.2 kB / 496.5 MB, free: 11.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.5182, allocations: 169.6 kB / 496.7 MB, free: 10.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008906/0.5191, allocations: 445.5 kB / 497.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.5192, allocations: 29.7 kB / 497.2 MB, free: 10.42 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.278e-05/0.5193, allocations: 95.89 kB / 497.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.958e-05/0.5194, allocations: 34.86 kB / 497.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.5194, allocations: 4 kB / 497.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.5196, allocations: 329 kB / 497.6 MB, free: 9.969 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.5197, allocations: 54.55 kB / 497.7 MB, free: 9.934 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.5199, allocations: 57.69 kB / 497.7 MB, free: 9.898 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.52, allocations: 39.3 kB / 497.8 MB, free: 9.871 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.52, allocations: 0 / 497.8 MB, free: 9.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006345/0.5207, allocations: 247.4 kB / 498 MB, free: 9.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.5208, allocations: 118.2 kB / 498.1 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.5208, allocations: 4 kB / 498.1 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.5208, allocations: 0 / 498.1 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.164e-05/0.5209, allocations: 11.42 kB / 498.1 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.5209, allocations: 4.109 kB / 498.1 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.5211, allocations: 15.94 kB / 498.2 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.5213, allocations: 55.94 kB / 498.2 MB, free: 9.449 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,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.0002382/0.5215, allocations: 244.5 kB / 498.4 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006921/0.5222, allocations: 301.1 kB / 498.7 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.5223, allocations: 35.62 kB / 498.8 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001715/0.5225, allocations: 61.25 kB / 498.8 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.5225, allocations: 4 kB / 498.8 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5225, allocations: 4 kB / 498.8 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.5225, allocations: 0 / 498.8 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.5237, allocations: 0.6339 MB / 499.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.5237, allocations: 0 / 499.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.059e-05/0.5238, allocations: 4.188 kB / 499.5 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.5238, allocations: 0 / 499.5 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.461e-05/0.5238, allocations: 21.7 kB / 499.5 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.246e-06/0.5238, allocations: 7.984 kB / 499.5 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.5239, allocations: 0 / 499.5 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007962/0.5247, allocations: 395.6 kB / 499.9 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004834/0.5252, allocations: 241.2 kB / 0.4884 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.937e-05/0.5253, allocations: 11.5 kB / 0.4884 GB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.5256, allocations: 11.91 kB / 0.4884 GB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.5257, allocations: 30.08 kB / 0.4885 GB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.5258, allocations: 59.75 kB / 0.4885 GB, free: 7.566 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006896/0.5265, allocations: 370 kB / 0.4889 GB, free: 7.266 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5266, allocations: 4 kB / 0.4889 GB, free: 7.262 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005211/0.5271, allocations: 47.95 kB / 0.4889 GB, free: 7.215 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,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.001216/0.5283, allocations: 0.9334 MB / 0.4898 GB, free: 6.312 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006516/0.529, allocations: 420.8 kB / 0.4902 GB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.529, allocations: 0 / 0.4902 GB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003957/0.5294, allocations: 368 kB / 0.4906 GB, free: 5.613 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007804/0.5302, allocations: 93.92 kB / 0.4907 GB, free: 5.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.5321, allocations: 0.5923 MB / 0.4913 GB, free: 4.965 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006707/0.5327, allocations: 0.8128 MB / 0.492 GB, free: 4.137 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.014e-05/0.5328, allocations: 8.656 kB / 0.4921 GB, free: 4.129 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.552e-05/0.5329, allocations: 32.67 kB / 0.4921 GB, free: 4.109 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5329, allocations: 0 / 0.4921 GB, free: 4.109 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03207/0.565, allocations: 4.89 MB / 0.4969 GB, free: 15.19 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/0.5653, allocations: 133 kB / 0.497 GB, free: 15 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/2.226, allocations: 0 / 0.497 GB, free: 15 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat does not exist to compare? outputFormat=mat