Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.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: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 202.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 245.4 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007973/0.0007973, allocations: 105.9 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001964/0.0001964, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1834, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08803/0.2715, allocations: 82.99 MB / 491.6 MB, free: 8.578 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.2717, allocations: 71.97 kB / 491.7 MB, free: 8.508 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03123/0.3029, allocations: 16.7 MB / 0.4965 GB, free: 7.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.303, allocations: 0 / 0.4965 GB, free: 7.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.303, allocations: 4 kB / 0.4965 GB, free: 7.883 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.0006047/0.3036, allocations: 0.6761 MB / 0.4972 GB, free: 7.129 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.3037, allocations: 12.03 kB / 0.4972 GB, free: 7.117 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.503e-05/0.3037, allocations: 32.56 kB / 0.4972 GB, free: 7.086 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.304, allocations: 266.5 kB / 0.4975 GB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.304, allocations: 4.375 kB / 0.4975 GB, free: 6.785 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/0.304, allocations: 12.38 kB / 0.4975 GB, free: 6.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.3043, allocations: 137.2 kB / 0.4976 GB, free: 6.637 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.3043, allocations: 192 / 0.4976 GB, free: 6.637 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.3044, allocations: 7.938 kB / 0.4976 GB, free: 6.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.3044, allocations: 0 / 0.4976 GB, free: 6.629 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.3045, allocations: 67.95 kB / 0.4977 GB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005613/0.3051, allocations: 464.4 kB / 0.4981 GB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.3052, allocations: 94.55 kB / 0.4982 GB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.3054, allocations: 84.88 kB / 0.4983 GB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.197e-06/0.3054, allocations: 4 kB / 0.4983 GB, free: 5.867 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.3057, allocations: 204.3 kB / 0.4985 GB, free: 5.645 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.3057, allocations: 0 / 0.4985 GB, free: 5.645 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007021/0.3064, allocations: 480 kB / 0.4989 GB, free: 5.145 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.3065, allocations: 170.2 kB / 0.4991 GB, free: 4.941 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005514/0.307, allocations: 0.513 MB / 0.4996 GB, free: 4.422 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.3071, allocations: 29.81 kB / 0.4996 GB, free: 4.387 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.3071, allocations: 105.1 kB / 0.4997 GB, free: 4.277 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.3072, allocations: 35.52 kB / 0.4998 GB, free: 4.242 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/0.3072, allocations: 4 kB / 0.4998 GB, free: 4.238 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3073, allocations: 326.8 kB / 0.5001 GB, free: 3.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.3074, allocations: 59.95 kB / 0.5001 GB, free: 3.852 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.3076, allocations: 73.69 kB / 0.5002 GB, free: 3.773 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/0.3079, allocations: 339.3 kB / 0.5005 GB, free: 3.387 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3079, allocations: 0 / 0.5005 GB, free: 3.387 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004832/0.3084, allocations: 399.5 kB / 0.5009 GB, free: 2.969 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.951e-05/0.3085, allocations: 122.8 kB / 0.501 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3085, allocations: 0 / 0.501 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.047e-05/0.3085, allocations: 0 / 0.501 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-05/0.3085, allocations: 0 / 0.501 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.3085, allocations: 0 / 0.501 GB, free: 2.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.3086, allocations: 15.98 kB / 0.5011 GB, free: 2.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.419e-05/0.3087, allocations: 59.94 kB / 0.5011 GB, free: 2.75 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.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,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: 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.0002893/0.309, allocations: 370.7 kB / 0.5015 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.57e-05/0.3091, allocations: 43.53 kB / 0.5015 GB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.468e-05/0.3092, allocations: 63.14 kB / 0.5016 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3092, allocations: 0 / 0.5016 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.3092, allocations: 0 / 0.5016 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3092, allocations: 0 / 0.5016 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008372/0.31, allocations: 0.8174 MB / 0.5024 GB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.31, allocations: 0 / 0.5024 GB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.169e-06/0.31, allocations: 4 kB / 0.5024 GB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3101, allocations: 0 / 0.5024 GB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.3101, allocations: 15.98 kB / 0.5024 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3101, allocations: 3.938 kB / 0.5024 GB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3101, allocations: 4.172 kB / 0.5024 GB, free: 1.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005668/0.3107, allocations: 0.5292 MB / 0.5029 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002717/0.311, allocations: 248.4 kB / 0.5031 GB, free: 500 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.124e-05/0.311, allocations: 15.94 kB / 0.5032 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.3112, allocations: 12 kB / 0.5032 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.3113, allocations: 35.94 kB / 0.5032 GB, free: 436 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.904e-05/0.3113, allocations: 63.86 kB / 0.5033 GB, free: 372 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1672/0.4785, allocations: 385.1 kB / 0.5036 GB, free: 96.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.182e-06/0.4786, allocations: 0.6875 kB / 0.5036 GB, free: 96.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004741/0.4791, allocations: 42.94 kB / 0.5037 GB, free: 96.57 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,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) * 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.0001906/0.4793, allocations: 112.8 kB / 0.5038 GB, free: 96.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006627/0.4799, allocations: 440.5 kB / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4799, allocations: 0 / 0.5042 GB, free: 96.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.4803, allocations: 373.7 kB / 0.5046 GB, free: 95.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.4809, allocations: 102.8 kB / 0.5047 GB, free: 95.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.4821, allocations: 0.7766 MB / 0.5054 GB, free: 95.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.4824, allocations: 0.8001 MB / 0.5062 GB, free: 94.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.975e-05/0.4824, allocations: 10.7 kB / 0.5062 GB, free: 94.84 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4824, allocations: 6.219 kB / 0.5062 GB, free: 94.84 MB / 378.7 MB Notification: Performance of Templates: time 0.004453/0.4869, allocations: 2.669 MB / 0.5088 GB, free: 94.59 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches