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.0009793/0.0009793, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007827/0.0007827, allocations: 99.73 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.0002099, allocations: 8 kB / 358 MB, free: 9.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1962, allocations: 51.49 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09833/0.2946, allocations: 83.05 MB / 492.6 MB, free: 7.555 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.2949, allocations: 75.95 kB / 492.6 MB, free: 7.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03138/0.3263, allocations: 16.7 MB / 0.4974 GB, free: 6.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3263, allocations: 0 / 0.4974 GB, free: 6.859 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.3264, allocations: 4 kB / 0.4974 GB, free: 6.855 MB / 378.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.0007814/0.3271, allocations: 0.672 MB / 0.4981 GB, free: 6.109 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.3272, allocations: 16.03 kB / 0.4981 GB, free: 6.094 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.581e-05/0.3273, allocations: 42.5 kB / 0.4981 GB, free: 6.043 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.3274, allocations: 31.62 kB / 0.4981 GB, free: 6.012 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.3277, allocations: 261.5 kB / 0.4984 GB, free: 5.719 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.3277, allocations: 8 kB / 0.4984 GB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.637e-05/0.3278, allocations: 12 kB / 0.4984 GB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.3281, allocations: 121.6 kB / 0.4985 GB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3281, allocations: 4 kB / 0.4985 GB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.3281, allocations: 0 / 0.4985 GB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3281, allocations: 4 kB / 0.4985 GB, free: 5.566 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001354/0.3283, allocations: 71.88 kB / 0.4986 GB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000704/0.329, allocations: 456.5 kB / 0.499 GB, free: 5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.3292, allocations: 102.5 kB / 0.4991 GB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.3292, allocations: 112 / 0.4991 GB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.3295, allocations: 214.7 kB / 0.4993 GB, free: 4.656 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.3295, allocations: 0 / 0.4993 GB, free: 4.656 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008541/0.3304, allocations: 0.6075 MB / 0.4999 GB, free: 3.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.377e-05/0.3304, allocations: 166.2 kB / 0.5001 GB, free: 3.781 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006002/0.3311, allocations: 468.5 kB / 0.5005 GB, free: 3.312 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.3311, allocations: 29.7 kB / 0.5006 GB, free: 3.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.3312, allocations: 97.12 kB / 0.5007 GB, free: 3.176 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.293e-05/0.3312, allocations: 35.56 kB / 0.5007 GB, free: 3.141 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.3313, allocations: 8 kB / 0.5007 GB, free: 3.133 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3314, allocations: 318.8 kB / 0.501 GB, free: 2.812 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.3315, allocations: 55.97 kB / 0.5011 GB, free: 2.758 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.3317, allocations: 84.28 kB / 0.5011 GB, free: 2.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.3319, allocations: 166 kB / 0.5013 GB, free: 2.488 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3319, allocations: 0 / 0.5013 GB, free: 2.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005537/0.3324, allocations: 372.4 kB / 0.5016 GB, free: 2.094 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.653e-05/0.3325, allocations: 126.8 kB / 0.5018 GB, free: 1.945 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.3326, allocations: 0 / 0.5018 GB, free: 1.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3326, allocations: 3.984 kB / 0.5018 GB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.826e-05/0.3326, allocations: 3.938 kB / 0.5018 GB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.3326, allocations: 4 kB / 0.5018 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.3328, allocations: 8 kB / 0.5018 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.486e-05/0.3329, allocations: 67.88 kB / 0.5019 GB, free: 1.859 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,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: 0 () * Number of clocked 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.000384/0.3333, allocations: 362.8 kB / 0.5022 GB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/0.3334, allocations: 43.53 kB / 0.5022 GB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.3335, allocations: 67.12 kB / 0.5023 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3335, allocations: 0 / 0.5023 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3335, allocations: 0 / 0.5023 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3335, allocations: 3.938 kB / 0.5023 GB, free: 1.355 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009325/0.3344, allocations: 0.8017 MB / 0.5031 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.3345, allocations: 192 / 0.5031 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.963e-06/0.3345, allocations: 4 kB / 0.5031 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3345, allocations: 0 / 0.5031 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.3345, allocations: 23.94 kB / 0.5031 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.3345, allocations: 0 / 0.5031 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3345, allocations: 0 / 0.5031 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1636/0.4982, allocations: 0.5151 MB / 0.5036 GB, free: 95.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004387/0.4987, allocations: 247 kB / 0.5039 GB, free: 95.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.4987, allocations: 10.44 kB / 0.5039 GB, free: 95.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.4989, allocations: 13.33 kB / 0.5039 GB, free: 95.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.499, allocations: 30.78 kB / 0.5039 GB, free: 95.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-05/0.4991, allocations: 59.92 kB / 0.504 GB, free: 95.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004741/0.4996, allocations: 388.5 kB / 0.5043 GB, free: 95.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4996, allocations: 0.7188 kB / 0.5043 GB, free: 95.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002932/0.4999, allocations: 45.44 kB / 0.5044 GB, free: 95.5 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) * Number of clocked states: 0 () * 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.000846/0.5008, allocations: 1.073 MB / 0.5054 GB, free: 94.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004432/0.5012, allocations: 439.8 kB / 0.5058 GB, free: 94.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.5012, allocations: 0 / 0.5058 GB, free: 94.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.5015, allocations: 376.2 kB / 0.5062 GB, free: 94.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.502, allocations: 104 kB / 0.5063 GB, free: 94.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.5039, allocations: 1.589 MB / 0.5079 GB, free: 93.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.5042, allocations: 0.8082 MB / 0.5086 GB, free: 92.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.636e-05/0.5042, allocations: 4.797 kB / 0.5087 GB, free: 92.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.5043, allocations: 29.2 kB / 0.5087 GB, free: 92.66 MB / 378.7 MB Notification: Performance of SimCode: time 7.81e-07/0.5043, allocations: 0 / 0.5087 GB, free: 92.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0147/0.519, allocations: 5.325 MB / 0.5139 GB, free: 92.07 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/0.5192, allocations: 176.2 kB / 0.514 GB, free: 91.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.482/2.001, allocations: 2.875 kB / 0.514 GB, free: 91.83 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